python应用操作——从两个相关的序列构建一个字典
提问人:ylm发布时间: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}
继续查找其他问题的答案?
相关视频回答
回复(0)
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}
点击加载更多评论>>