with open('d.txt', 'w') as outfile: json.dump(data, outfile). To append data, replace 'w' with 'a' or 'a+'. 'w' always writes up a new file, while 'a' loads ...
確定! 回上一頁