迭代式迴圈 for...in 語法: for 變數 in range(起點,終點,遞增值):動作 1 動作 2 # . ... 例:列出 1 到 100 間被 7 除餘 3 的數 1 for n in range(1, 100): 2 if n % 7 ...
確定! 回上一頁