相关文章推荐
小百科
›
ujson – JSON编解码 — Python结团应用领域
奋斗的毛豆
2 年前
strDic
=
'{"name":"Lihua","ages":18,"weigth":140,"heigth":170}'
str
=
ujson
.
loads
(
strDic
)
print
(
str
)
print
(
type
(
str
))
期望输出:
{'heigth': 170, 'ages': 18, 'name': 'Lihua', 'weigth': 140} <class 'dict'>
推荐文章