python 将列表追加到新列表的写法,
>>> f0=2304001 >>> xx=f0-1 >>> mvv=[] >>> muu=[] >>> muu.append([xx+1,xx+2,xx+3]) >>> muu [[2304001, 2304002, 2304003]] >>> xx=xx+3 >>> muu.append([xx+1,xx+2,xx+3]) >>> muu [[2304001, 2304002, 2304003], [2304004, 2304005, 2304006]] >>>
#利用列表形成dataframe
dfc1 = pd.DataFrame(muu)
>>> dfc1 = pd.DataFrame(muu)
>>> dfc1
0 1 2
0 2304001 2304002 2304003
1 2304004 2304005 2304006
>>>