49-输出@从一行#中穿过

import time

length = 19
count = 0

while True:
    print('\r%s@%s' % ('#' * count, '#' * (length - count)), end='')
    try:
        time.sleep(0.3)
    except KeyboardInterrupt:
        print('\nBye-bye')
        break
    if count == length:
        count = 0
    count += 1
posted @ 2019-05-22 17:15  hejp  阅读(115)  评论(0编辑  收藏  举报