0
点赞
收藏
分享

微信扫一扫

toml json5 写入区别

dump写入

with open(addr_1, 'w') as f:

   json5.dump(data_1, f)


# write 将字符串写入文件

with open(addr, 'w') as f:

   f.write(toml_str_with_comments)

举报

相关推荐

0 条评论