yaml 文件保存

 

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

 

posted @ 2018-10-24 20:10  anobscureretreat  阅读(1060)  评论(0编辑  收藏  举报