Call open(filename, mode) with "w" as mode to open filename for writing. Call json.dump(data, file) to convert data to JSON and write it to file . Use file.
確定! 回上一頁