摘要: import json 序列化 dic = {'a':True,"b":False,'c':'你好’} dic_js = json.dumps(dic) print(dic_js) 持久化(写入文件) with open('at','wt',encoding='utf-8')as f: f.writ 阅读全文
posted @ 2019-01-23 21:04 pdun 阅读(331) 评论(0) 推荐(0) 编辑