python dict转json 并保存文件. import json f = open("index.html", "wb") json.dump(response.data, f) f.close() dumps只完成了序列化为str, dump必须传文件描述符, ...
確定! 回上一頁