python應(yīng)用操作——從兩個(gè)相關(guān)的序列構(gòu)建一個(gè)字典
提問(wèn)人:ylm發(fā)布時(shí)間: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ù)查找其他問(wèn)題的答案?
相關(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}
點(diǎn)擊加載更多評(píng)論>>