摘要: #coding=UTF-8 from functools import reduce alist = [1, 3, 5, 7, 9] # 1.map def mi(x): return x**2 print "map mi结果:",list(map(mi,alist)) # 1.2 map把元素为int的转化为字符串 print "元素类型为int的转为字符串:",list(map(... 阅读全文
posted @ 2019-03-08 09:27 sjxm2017 阅读(200) 评论(0) 推荐(0) 编辑