One - One Code All

Blog Content

python将两个列表按键值对转换成字典zip函数

Python   2010-08-18 22:04:26
A = ['1','2','3','4','5']
B = [3,4,5,6,7,8]
print(dict(zip(A,B)))



上一篇:pandas根据索引获取数据,索引检索再追加isin
下一篇:Python判断对象类型isinstance

The minute you think of giving up, think of the reason why you held on so long.