若是偶數,那麼 number % 2 會是0,在 if 判斷式中就會被認定為 False ,因此會執行 else 區塊內容。一個執行範例如下:. >python is_odd.py 10 10 為 ...
確定! 回上一頁