2015年4月30日
摘要: aa = (1, 2, 3, 4, 5, 6)b = [(x == 5 and 8 or x) for x in aa]z = map(lambda x: 8 if x == 5 else x, [i for i in b])print(b)print(z) 阅读全文
posted @ 2015-04-30 22:45 c3tc3tc3t 阅读(2963) 评论(0) 推荐(0)