YAML控件安装:
(1)打开http://pyyaml.org/
(2)建议下载exe,方便安装适合咱们的习惯
2.编写yaml文件(myyaml.yaml),内容如下:
name:LYXD
age:20
sex:man
summary:
school:YanTai
hobby:sleep
company:
- Ali
- jd
3.Python读取操作yaml:
4.yaml语言冒号后边必须加空格否则会报“
yaml.scanner.ScannerError: mapping values are not allowedhere”
立春了,冬天马上过去了,躁动起来!!!!!!
领取专属 10元无门槛券
私享最新 技术干货