List comprehension in Python is an easy and compact syntax for creating a list ... for x in range(21): if x%2 == 0: even_nums.append(x) print(even_nums).
確定! 回上一頁