摘要:
100以内奇数: ls = [x for x in range(100) if x % 2 == 1] 100以内偶数: ls = list(x for x in range(100) if x % 2 == 0) 20以内的2次方: ls = list(x * x for x in range(2 阅读全文
摘要:
100以内奇数: ls = [x for x in range(100) if x % 2 == 1] 100以内偶数: ls = list(x for x in range(100) if x % 2 == 0) 20以内的2次方: ls = list(x * x for x in range(2 阅读全文
|