---
- element1
- element2
- element3
数组中的每个元素都是以 - 开始的。
key: value
key和value已冒号加空格分隔。
字典的嵌套
# An employee record
martin:
name: Martin D'vloper
job: Developer
skill: Elite
字典和数组的嵌套
- martin:
name: Martin D'vloper
job: Developer
skills:
- python
- perl
- pascal
- tabitha:
name: Tabitha Bitumen
job: Developer
skills:
- lisp
- fortran
- erlang
变量里有:要加引号
foo: "somebody said I should put a colon here: so I did"
变量的引用要加引号
foo: "\{\{ variable \}\}"
https://en.wikipedia.org/wiki/YAML
http://www.yamllint.com/