标签:class question data pytho 内容 个性化定制 个性 lang load
可能我们设置了一个json文件,它是默认配置全的,后期需用个性化定制,修改json文件的配置项目
代码如下:
with open("replayScript.json", "r") as jsonFile:
data = json.load(jsonFile)
data["location"] = "NewPath"
with open("replayScript.json", "w") as jsonFile:
json.dump(data, jsonFile)
How to update json file with python - Stack Overflow]
标签:class question data pytho 内容 个性化定制 个性 lang load
原文地址:https://www.cnblogs.com/ministep/p/14695274.html