for i in range(1,10,2): print(i, end=',') # 印出2,4,6,8. total = n = 0 while(n < 10): # 條件式: n < 10 n += 1 # 自行改變n值total += n # 加總1~10. for迴圈.
確定! 回上一頁