How to close a cmd window using python 2.7

前端 未结 5 901
南方客
南方客 2021-01-15 06:03

The title pretty much says it, although it does not need to be specific to a cmd, just closing an application in general. I have seen

os.system(taskkill bla         


        
5条回答
  •  梦毁少年i
    2021-01-15 06:57

    the exit() command works however in 2.7 it still asks you if you are sure you want to quit. It states that the program is still running. ETC

提交回复
热议问题