In Python, list comprehensions are constructed like so: ... number_list = [x ** 2 for x in range(10) if x % 2 == 0] print(number_list).
確定! 回上一頁