📜  如何在python代码示例中制作字母动画

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

代码示例1
import sys
from time import sleep

def animate(text):
  for letter in text:
    print(letter, end="")
    sys.stdout.flush()
    sleep(0.05) # I use 0.05 but you can change it


animate("This will be animated")