摘要:
import jsondef op_data(filename,dic=None): if dic:#写入进去 with open(filename,'w',encoding='utf-8') as fw: json.dump(dic,fw,ensure_ascii=False,indent=4) 阅读全文
posted @ 2018-04-20 00:00
彼得潘jd
阅读(94)
评论(0)
推荐(0)
摘要:
# import json# # json串是一个字符串# f=open('product.json',encoding='utf-8')# res=f.read()# print(json.loads(res))## # json串转成字典# product_dic=json.loads(res) 阅读全文
posted @ 2018-04-20 00:00
彼得潘jd
阅读(107)
评论(0)
推荐(0)
浙公网安备 33010602011771号