import os
import time
def main():
content = '我永远爱嘉慧老婆..........'
while True:
#清理屏幕上的输出
os.system('cls') # os.system('clear)#清屏
print(content)
#休眠200毫秒
time.sleep(4)#睡眠时间
content = content[1:] + content[0]
if __name__ == '__main__':
main()
python跑马灯
最新推荐文章于 2024-11-29 23:54:41 发布