numbers = [x * 3 for x in range(10)]; print(numbers). x * 3 就是串列(List)Comprehension中的運算式(expression),而x 是接收可疊代的物件(Iterable Object)變數, ...
確定! 回上一頁