📜  动画文本终端python代码示例

📅  最后修改于: 2022-03-11 14:46:51.549000             🧑  作者: Mango

代码示例1
import time
import sys
def scroll_text(text):
  for char in str(text):
    sys.stdout.write(char)
    sys.stdout.flush()
  time.sleep(0.05)
scroll_text("Hello World")