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

Posted nmke

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用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)

 

以上是关于用while语句输出1 2 3 4 5 6 8 9 10的主要内容,如果未能解决你的问题,请参考以下文章