📜  python代码示例中的命令提示符暂停

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

代码示例1
# Don't use os.system("pause"), it is very slow because it needs to create
# an entire shell process. Use this instead:

import getch

def pause():
  print("Press any key to continue . . . ")
  getch.getch()