yaml是一种直观的能够被电脑识别的的数据序列化格式,容易被人类阅读,并且容易和脚本语言交互。
#表示注释
import yaml with open(demo.yaml,‘rb‘) as f: config = yaml.load(f) test_list = config["test_list"] test_dict = config["tesst_dict"]
yaml 配置
原文:https://www.cnblogs.com/ronky/p/9231675.html