問題:
I read them on YAML-wikipedia but not really understood the main difference between them.我在YAML-wikipedia上閱讀了它們,但並沒有真正理解它們之間的主要區別。 I saw there are someone using .yaml
extension, however, Symfony2 use .yml
extension.我看到有人使用.yaml
擴展名,但是, Symfony2使用.yml
擴展名。
YAML is a human-readable data serialization format that takes concepts from programming languages such as C, Perl, and Python, and ideas from XML and the data format of electronic mail. YAML是一種人類可讀的數據序列化格式,它借鑑了 C、Perl 和 Python 等編程語言的概念,以及 XML 和電子郵件數據格式的思想。
YAML is a recursive acronym for "YAML Ain't Markup Language". YAML是“YAML Ain't Markup Language”的遞歸首字母縮寫詞。 Early in its development, YAML was said to mean "Yet Another Markup Language",[3] but it was then reinterpreted (backronyming the original acronym) to distinguish its purpose as data-oriented, rather than document markup.在其開發的早期,據說 YAML 的意思是“另一種標記語言”,[3] 但它隨後被重新解釋(將原始首字母縮略詞)以區分其目的是面向數據,而不是文檔標記。
So, how exactly the different between .yaml
and .yml
?那麼, .yaml
和.yml
之間.yaml
.yml
不同? When should we prefer one over the other?我們什麼時候應該更喜歡一個?
解決方案:
參考一: https://en.stackoom.com/question/1VRAe參考二: https://stackoom.com/question/1VRAe