JSON格式 在
<script>
var data2sales=
[{
"key": "Owners",
"bar": true,
"values": [
[1490400000000, 1591, "", "", ""],
[1490486400000, 1924, "#2B6A94", "", ""],
[1490572800000, 1982, "", "", ""],
[1490659200000, 1606, "", "", ""]]
}]
</script>
我在Python中获取Json的代码 在
^{pr2}$我是Python中BeautifulSoup的新手,我试图从BeautifulSoup中提取一个dict
。正如您在我的代码中看到的,我用python重新生成了JSON代码,并保存在newDict变量中。但它不起作用。有没有人可以教我如何提取JSON代码?谢谢您。在
假设上面的脚本在一个字符串
text
内,可以执行如下操作:输出:
^{pr2}$相关问题 更多 >
编程相关推荐