摘要: # 列表生成式lists = [x * x for x in range(1, 11)]print(lists)# 列表生成式2lists2 = [x * x for x in range(1, 11) if x % 2 == 0]print(lists2)# 列表生成式3lists3 = [x + 阅读全文
posted @ 2019-01-02 17:56 牛屎虫 阅读(104) 评论(0) 推荐(0) 编辑