將一個 list 轉為另一個 list ,是很常見的操作,Python 針對這類需求,提供了 ... import sys squares = [int(arg) ** 2 for arg in sys.argv[1:]] ...
確定! 回上一頁