python

less than 1 minute read

 Author: 张克莱

  双击.py文件运行python脚本文件时,命令窗口闪了一下就退出了怎么办?
  可以直接添加以下命令,强制开启命令窗口:
   import os
   os.system(“pause”)