24day 1.列表生成式: 循环模式:[变量(加工后的变量) for 变量 in iterable] print([i for i in range(0,101,2)]) [1,4,9,16,25,36,49] print([i*i for i in range(1,8)]) #['python1期', 'python2期', .....'python20期'] print(['python%s期'%i for i in range(1,21)]) 筛选模式:[变量(加工后的变量) for 变…