Table of Contents

PyYAML

YAML


安装

python -m pip install PyYAML -i https://pypi.douban.com/simple

基础使用

import yaml
 
f = open('yaml_example_dict.yml', encoding='utf-8')
yaml_log = yaml.load(f)
print(yaml_log)