yxx1196 发表于 2021-4-25 20:25:17

求助大佬们我想把列表里面的数据提出来该怎么提取啊

{"date":20210423,"time":154512,"total":1911,"begin":0,"end":25,"list":[["600000","浦发银行",10.42,10.47,10.38,10.43,10.43,0.00,24825285,259051575,"E110",0.00,0.86,"ASH","   DF             "],["600004","白云机场",13.02,13.06,12.79,12.93,13.04,-0.84,10303861,132959931,"E110",-0.11,2.07,"ASH","   DF             "],["600006","东风汽车",6.77,6.81,6.60,6.60,6.74,-2.08,52169702,348149938,"E110",-0.14,3.12,"ASH","   DF             "],["600007","中国国贸",12.52,12.66,12.47,12.63,12.52,0.88,1494700,18782251,"E110",0.11,1.52,"ASH","   DF             "],["600008","首创股份",3.00,3.00,2.96,2.98,3.00,-0.67,35473311,105565286,"E110",-0.02,1.33,"ASH","   DF             "],["600009","上海机场",56.17,56.48,55.60,56.36,56.35,0.02,12392124,694799499,"E110",0.01,1.56,"ASH","   DF             "],["600010","包钢股份",1.57,1.58,1.55,1.56,1.57,-0.64,528663424,824903379,"E110",-0.01,1.91,"ASH","   DF             "],["600011","华能国际",4.09,4.10,4.04,4.07,4.10,-0.73,21977608,89259431,"E110",-0.03,1.46,"ASH","   DF             "],["600012","皖通高速",7.22,7.25,7.11,7.14,7.17,-0.42,3797484,27168065,"E110",-0.03,1.95,"ASH","   DF             "],["600015","华夏银行",6.26,6.26,6.22,6.24,6.25,-0.16,18718097,116749724,"E110",-0.01,0.64,"ASH","   DF             "],["600016","民生银行",4.87,4.89,4.85,4.86,4.87,-0.21,60252125,292963822,"E110",-0.01,0.82,"ASH","   DF             "],["600017","日照港",2.81,2.82,2.75,2.76,2.82,-2.13,18805800,52224649,"E110",-0.06,2.48,"ASH","   DF             "],["600018","上港集团",4.54,4.58,4.50,4.52,4.54,-0.44,22152959,100272935,"E110",-0.02,1.76,"ASH","   DF             "],["600019","宝钢股份",8.27,8.74,8.22,8.64,8.29,4.22,205330275,1750740965,"E110",0.35,6.27,"ASH","   DF             "],["600020","中原高速",3.31,3.32,3.27,3.29,3.32,-0.90,6648278,21865160,"E110",-0.03,1.51,"ASH","   DF             "],["600021","上海电力",7.16,7.21,7.03,7.08,7.16,-1.12,14409441,101968621,"E110",-0.08,2.51,"ASH","   DF             "],["600022","山东钢铁",1.75,1.78,1.71,1.77,1.74,1.72,197017784,345551491,"E110",0.03,4.02,"ASH","   DF             "],["600023","浙能电力",3.69,3.71,3.67,3.67,3.70,-0.81,17143205,63105908,"E110",-0.03,1.08,"ASH","   DF             "],["600025","华能水电",5.85,5.86,5.48,5.70,6.00,-5.00,118654211,669898968,"E110",-0.30,6.33,"ASH","   DF             "],["600026","中远海能",6.37,6.37,6.25,6.29,6.36,-1.10,12728336,79966272,"E110",-0.07,1.89,"ASH","   DF             "],["600027","华电国际",3.45,3.46,3.40,3.42,3.46,-1.16,21709701,74312228,"E110",-0.04,1.73,"ASH","   DF             "],["600028","中国石化",4.26,4.26,4.21,4.23,4.26,-0.70,96375165,407321999,"E110",-0.03,1.17,"ASH","   DF             "],["600029","南方航空",6.66,6.72,6.47,6.55,6.69,-2.09,72635558,477487297,"E110",-0.14,3.74,"ASH","   DF             "],["600030","中信证券",23.42,23.55,23.33,23.40,23.48,-0.34,49375978,1155874943,"E110",-0.08,0.94,"ASH","   DF             "],["600031","三一重工",31.67,33.19,31.63,32.93,31.67,3.98,159071649,5202257924,"E110",1.26,4.93,"ASH","   DF             "]]}


不能懒 发表于 2021-4-25 20:30:20

什么数据?需要的数据是什么?

xiaosi4081 发表于 2021-4-25 20:56:12


data={"date":20210423,"time":154512,"total":1911,"begin":0,"end":25,"list":[["600000","浦发银行",10.42,10.47,10.38,10.43,10.43,0.00,24825285,259051575,"E110",0.00,0.86,"ASH","   DF             "],["600004","白云机场",13.02,13.06,12.79,12.93,13.04,-0.84,10303861,132959931,"E110",-0.11,2.07,"ASH","   DF             "],["600006","东风汽车",6.77,6.81,6.60,6.60,6.74,-2.08,52169702,348149938,"E110",-0.14,3.12,"ASH","   DF             "],["600007","中国国贸",12.52,12.66,12.47,12.63,12.52,0.88,1494700,18782251,"E110",0.11,1.52,"ASH","   DF             "],["600008","首创股份",3.00,3.00,2.96,2.98,3.00,-0.67,35473311,105565286,"E110",-0.02,1.33,"ASH","   DF             "],["600009","上海机场",56.17,56.48,55.60,56.36,56.35,0.02,12392124,694799499,"E110",0.01,1.56,"ASH","   DF             "],["600010","包钢股份",1.57,1.58,1.55,1.56,1.57,-0.64,528663424,824903379,"E110",-0.01,1.91,"ASH","   DF             "],["600011","华能国际",4.09,4.10,4.04,4.07,4.10,-0.73,21977608,89259431,"E110",-0.03,1.46,"ASH","   DF             "],["600012","皖通高速",7.22,7.25,7.11,7.14,7.17,-0.42,3797484,27168065,"E110",-0.03,1.95,"ASH","   DF             "],["600015","华夏银行",6.26,6.26,6.22,6.24,6.25,-0.16,18718097,116749724,"E110",-0.01,0.64,"ASH","   DF             "],["600016","民生银行",4.87,4.89,4.85,4.86,4.87,-0.21,60252125,292963822,"E110",-0.01,0.82,"ASH","   DF             "],["600017","日照港",2.81,2.82,2.75,2.76,2.82,-2.13,18805800,52224649,"E110",-0.06,2.48,"ASH","   DF             "],["600018","上港集团",4.54,4.58,4.50,4.52,4.54,-0.44,22152959,100272935,"E110",-0.02,1.76,"ASH","   DF             "],["600019","宝钢股份",8.27,8.74,8.22,8.64,8.29,4.22,205330275,1750740965,"E110",0.35,6.27,"ASH","   DF             "],["600020","中原高速",3.31,3.32,3.27,3.29,3.32,-0.90,6648278,21865160,"E110",-0.03,1.51,"ASH","   DF             "],["600021","上海电力",7.16,7.21,7.03,7.08,7.16,-1.12,14409441,101968621,"E110",-0.08,2.51,"ASH","   DF             "],["600022","山东钢铁",1.75,1.78,1.71,1.77,1.74,1.72,197017784,345551491,"E110",0.03,4.02,"ASH","   DF             "],["600023","浙能电力",3.69,3.71,3.67,3.67,3.70,-0.81,17143205,63105908,"E110",-0.03,1.08,"ASH","   DF             "],["600025","华能水电",5.85,5.86,5.48,5.70,6.00,-5.00,118654211,669898968,"E110",-0.30,6.33,"ASH","   DF             "],["600026","中远海能",6.37,6.37,6.25,6.29,6.36,-1.10,12728336,79966272,"E110",-0.07,1.89,"ASH","   DF             "],["600027","华电国际",3.45,3.46,3.40,3.42,3.46,-1.16,21709701,74312228,"E110",-0.04,1.73,"ASH","   DF             "],["600028","中国石化",4.26,4.26,4.21,4.23,4.26,-0.70,96375165,407321999,"E110",-0.03,1.17,"ASH","   DF             "],["600029","南方航空",6.66,6.72,6.47,6.55,6.69,-2.09,72635558,477487297,"E110",-0.14,3.74,"ASH","   DF             "],["600030","中信证券",23.42,23.55,23.33,23.40,23.48,-0.34,49375978,1155874943,"E110",-0.08,0.94,"ASH","   DF             "],["600031","三一重工",31.67,33.19,31.63,32.93,31.67,3.98,159071649,5202257924,"E110",1.26,4.93,"ASH","   DF             "]]}
each = data["list"]

for i in each:
        print(i)

qq1151985918 发表于 2021-4-26 10:43:22

eval
页: [1]
查看完整版本: 求助大佬们我想把列表里面的数据提出来该怎么提取啊