yaml 文件保存

 

with open(mpath, "w") as f:
  yaml.safe_dump(yaml_dict,f,encoding='utf-8', allow_unicode=True)

 

转载于:https://www.cnblogs.com/sea-stream/p/9845863.html

你可能感兴趣的:(yaml 文件保存)