python應(yīng)用操作——從兩個相關(guān)的序列構(gòu)建一個字典
提問人:ylm發(fā)布時間:2020-09-29
In [92]: t1 = (1,2,3)
In [93]: t2 =(10,20,30)
In [94]: dict(zip(t1,t2)) Out[94]: {1: 10, 2: 20, 3: 30}
繼續(xù)查找其他問題的答案?
相關(guān)視頻回答
In [92]: t1 = (1,2,3)
In [93]: t2 =(10,20,30)
In [94]: dict(zip(t1,t2)) Out[94]: {1: 10, 2: 20, 3: 30}
點擊加載更多評論>>