用pandas 内建itertools里的groupby也可以,自己去研究一下 import pandas as pd a=["SHFE.al", "SHFE.cu", "SHFE.zn", "CZCE.SR","CZCE.CF","CZCE.CY","CZCE.ZC", "DCE.m","DCE.y","DCE.a","DCE.b","DCE.p", "CFFEX.IF","CFFEX.IH","CFFEX.IC","CFFEX.TS", "INE.sc"] df=pd.DataFrame(a,columns=['a']) df...
回答于 2021-09-23 22:26
for num1 in range(len(list_001)): k1 = list_001[num1] k2 = list_001[num1+1] print(num1) print(k1) print(k2)
回答于 2021-09-11 21:16
研究python3吧,python2到2019年就不维护了,python3的兼容性更好 意思就是,在2的背景下,我想在windows下cmd里面改作utf8中文不乱码,目前是没有操作的,对么?
回答于 2021-02-28 12:20