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))
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))
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。