for x in range(0,101): if x%2 == 0: numbers.append(x) print(numbers) #for 循环遍历0-101的数字,如果数字对2 取余==0,表示是偶数,x放在列表中 numbers = [x for x in range(0,101) if x%2==0] print(numbers) #列表中存放0-100的奇数 numbers = [x for x in range(0,101) if ...