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)