with open('my.json', 'w') as f: json.dump(my_dict, f) ... If we use dumps() , it simply dumps the dictionary into a string. json.dumps(my_dict).
確定! 回上一頁