📜  python 控制台暂停 - Python 代码示例

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

代码示例3
# 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()