原创 json 串與字典互相轉換

#導入json import json #定義字典 data={'name':'tom','age':16} #json.dumps轉換字典爲json j_data=json.dumps(data) #打印結果 print(j_data,