Yaml文件的读取 yaml格式的介绍 文本文件 服务器配置文件 xxx.yaml name: xiaomu age: 10 xingqing: - haha - heihei new: a: b c: 1 Python的第三方包----pyyaml pip install pyyaml import yaml 读取yaml文件的方法 用法 f = open(yaml_file, 'r') data = yaml.load(f.read()) f.clo...
hn.icodeq.com1 min read
No responses yet.