用while语句输出1 2 3 4 5 6 8 9 10

import time

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


print('the end')

猜你喜欢

转载自www.cnblogs.com/nmke/p/10162039.html