先写一个字典并将其转换成JSON格式: # encoding:utf-8 import json dic = {'a': 1, 'b': 2, 'c': 3} js = json.dumps(dic) print(js).
確定! 回上一頁