import json. data = {'key1': value1, 'key2': value2}. ret = json.dumps(data). open('out.json', 'w') with fp: fp.write(ret).
確定! 回上一頁