for i in range(l):. t = t + x[i] # 以for迴圈將資料加總. t. 結果列印加總結果: 514。 break指令. 程式範例: for ch in "MiluMilu": if ch == 'i':.
確定! 回上一頁