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)
标签:addr,dump,写入,write,json5,toml From: https://blog.51cto.com/u_16055028/8279114
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)
标签:addr,dump,写入,write,json5,toml From: https://blog.51cto.com/u_16055028/8279114