2018年8月28日
摘要: 1. 2个列表转换为字典 #encoding=utf-8list1=["a","b","c"]list2=[1,2,3]d={}for i in range(len(list1)): d[list1[i]]=list2[i]print (d) 2. 使用内置函数 zip 3.求一个列表中所有数据类型 阅读全文
posted @ 2018-08-28 18:18 淡淡的风景 阅读(103323) 评论(2) 推荐(0) 编辑