1. 程式人生 > >用while語句輸出1 2 3 4 5 6 8 9 10

用while語句輸出1 2 3 4 5 6 8 9 10

The while time spa port else while語句 pre print

import time

count=1
while count<=10:
    print(count,time.time())
    if count != 6:
        count=count+1
    else:
        count=count+2


print(the end)

用while語句輸出1 2 3 4 5 6 8 9 10