1. 程式人生 > >Python如何追加JSON檔案裡的內容?

Python如何追加JSON檔案裡的內容?

import json

readed = json.load(open('jsonsource.dat', 'r'))

json.dump(readed, open('newjsonfile.dat', 'w'))