def loadJson(jsonfile):
with open(jsonfile, 'r', encoding='utf-8') as f:
dictData = json.load(f)
return dictData

def saveJson(jsonfile, data):
with open(jsonfile, "w", encoding='utf-8') as f:
json.dump(data, f, indent=4)
 

相关文章:

  • 2021-06-23
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-17
  • 2021-08-25
  • 2021-11-16
  • 2021-09-29
  • 2021-09-19
  • 2021-06-30
相关资源
相似解决方案