:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" padding-bottom:="" font-style:="" normal;="" padding-top:="" padding-left:="" border-left:="" orphans:="" 2;="" widows:="" margin:="" 15px="15px" 0px="0px" 30px;="" letter-spacing:="" counter-reset:="" line-numbering="" 0;="" line-height:="" 23px;="" padding-right:="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" border-radius:="" overflow-wrap:="" inherit'="">
get_price_change_rate('sz000001',10)
返回list of
?dataval對象
?,print不出來?? 這個函數不能用了遍歷全市場股票的漲跌嗎,有什么可以替代?
?來源: CXH99.COM
金字塔客服:??? aa = get_price_change_rate('sz000001',10)
??? print(aa[-1].values)
?
用戶回復:
貌似只能取1天的漲跌幅吧,aa[-1] 這里只能-1 ,其他數都不行。最后取出1天的漲跌幅。那?get_price_change_rate('sz000001',10) 這個10有什么意義?
網友回復:你自己一樓都已經給出返回類型了。如果你沒有python基礎,建議你百度學習下。
我給你的只是告訴你怎么取,這種類型的數據取10個,需要你自己循環。
?
網友回復:
可以寫-2呀
此主題相關圖片如下:a_a{y}ii}$hmdio_f$c9%ie.png