json.dumps中indent参数是设置json缩进量的. 举例: tmp = { "aaa" : "111", "bbb" : '222' } import json with open("tmp.txt", "w") as fp:
確定! 回上一頁