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

import time

length = 19
count = 0

while True:
    print('
%s@%s' % ('#' * count, '#' * (length - count)), end='')
    try:
        time.sleep(0.3)
    except KeyboardInterrupt:
        print('
Bye-bye')
        break
    if count == length:
        count = 0
    count += 1
原文地址:https://www.cnblogs.com/hejianping/p/10907197.html