Python:NameError: name 'null' is not defined,pythonnameerror,问题代码html =""


问题代码

html ="""["http:\/\/weibo.com\/2084584685",10,null,null,false,true,0]"""
html = eval(html)

报错

NameError: name 'null' is not defined

html是采集后从源码中获取的,除了给null,false,true添加双引号以外,还有其他解决办法吗?

编橙之家文章,

评论关闭