python 字符串 赋值给list 30
我从其他接口得到的是这样一个字符串,怎样把它直接转换为list内包含字典的格式呢?类似这样list[dic1,dic2,dic3]。[{symbol:"sh600275"...
我从其他接口得到的是这样一个字符串,怎样把它直接转换为list内包含字典的格式呢?类似这样list[dic1,dic2,dic3]。
[{symbol:"sh600275",code:"600275",name:"武昌鱼",trade:"4.68",pricechange:"0.430",changepercent:"10.118",buy:"4.68",sell:"0.00",settlement:"4.25",open:"4.68",high:"4.68",low:"4.68",volume:253664,amount:1187148,ticktime:"15:03:07",per:-60.938,pb:11.836,mktcap:238135.827384,nmc:238135.827384,turnoverratio:0.04985},{symbol:"sz002105",code:"002105",name:"信隆实业",trade:"11.06",pricechange:"1.010",changepercent:"10.050",buy:"11.06",sell:"0.00",settlement:"10.05",open:"9.81",high:"11.06",low:"9.55",volume:60345805,amount:616025899,ticktime:"15:05:55",per:691.25,pb:7.125,mktcap:370510,nmc:370510,turnoverratio:18.01367},{symbol:"sz300402",code:"300402",name:"宝色股份",trade:"13.810",pricechange:"1.260",changepercent:"10.040",buy:"13.810",sell:"0.000",settlement:"12.550",open:"13.810",high:"13.810",low:"13.810",volume:508339,amount:7020162,ticktime:"15:05:55",per:36.342,pb:4.37,mktcap:278962,nmc:70431,turnoverratio:0.99674}] 展开
[{symbol:"sh600275",code:"600275",name:"武昌鱼",trade:"4.68",pricechange:"0.430",changepercent:"10.118",buy:"4.68",sell:"0.00",settlement:"4.25",open:"4.68",high:"4.68",low:"4.68",volume:253664,amount:1187148,ticktime:"15:03:07",per:-60.938,pb:11.836,mktcap:238135.827384,nmc:238135.827384,turnoverratio:0.04985},{symbol:"sz002105",code:"002105",name:"信隆实业",trade:"11.06",pricechange:"1.010",changepercent:"10.050",buy:"11.06",sell:"0.00",settlement:"10.05",open:"9.81",high:"11.06",low:"9.55",volume:60345805,amount:616025899,ticktime:"15:05:55",per:691.25,pb:7.125,mktcap:370510,nmc:370510,turnoverratio:18.01367},{symbol:"sz300402",code:"300402",name:"宝色股份",trade:"13.810",pricechange:"1.260",changepercent:"10.040",buy:"13.810",sell:"0.000",settlement:"12.550",open:"13.810",high:"13.810",low:"13.810",volume:508339,amount:7020162,ticktime:"15:05:55",per:36.342,pb:4.37,mktcap:278962,nmc:70431,turnoverratio:0.99674}] 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询