@terminaldilettante json.dump 写入文件或类似文件的对象,而 json.dumps 返回字符串。 btw:要重新读取数据,请使用open("data.txt")作为infile:d=json.
確定! 回上一頁