Python如何追加JSON文件里的内容?

import json

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

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

                                                                        

猜你喜欢

转载自blog.csdn.net/marraybug/article/details/84985059