json.dump(s) & json.load(s) · string: import json d = {'alpha': 1, 'beta': 2} s = json.dumps(d) open("out.json","w").write(s) · dictionary: import json d = {' ...
確定! 回上一頁