📜  python打字效果——Python代码示例

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

代码示例1
from time import sleep
import sys

string = "The Battle Cats For Life" # Whatever string you want

for letter in string:
  sleep(0.01) # In seconds
  sys.stdout.write(letter)
  sys.stdout.flush()