pip install simplejson python import simplejson as json with open('data.json') as file: data = json.load(file) print(data) python import simplejson as json data = { 'name': 'Alice', 'age': 25, 'city': 'Beijing' } with open('data.json', 'w') as file: file.write(json_data)


上一篇:
下一篇:
切换中文