Python中用eval将字符串转换为字典时候出错:NameError: name ‘null’ is not defined的解决方法

这两天在用python调用接口时,由于接口返回的是str类型的数据,形如: python 由于这样的str相似字典,因此我想把它转为字典以便处理,使用的是eval来进行转换,以下:json <pre name="code" class="python">a='{"errno":0,"errmsg":null,"unassigned":0,"total":0,"list":null}' a=eval
相关文章
相关标签/搜索