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