Json模块json.loads()的用法
时间:2020-04-09 16:00:26
收藏:0
阅读:641
import json
a=‘{"errno":0,"errmsg":null,"unassigned":0,"total":0,"list":null}‘
# json.loads()可以识别出字符串中的json格式:去掉引号,并变成通用的json,所有语言都识别
a=json.loads(a)
print(a)
print(type(a))
原文:https://www.cnblogs.com/hongyufei/p/12667216.html
评论(0)