Python runs a solution that does not show the DOS window

  • 2020-12-26 05:48:01
  • OfStack

Method 1: pythonw xxx.py

Method 2: Change.py to.pyw (this is actually using the script parser pythonw.exe)

Compared with ES12en.exe, pythonw.exe has the following differences:

1) The console window (also known as DOS window) will not pop up during execution

2) All outputs to the original stdout and stderr are invalid

3) All reads from the original stdin will only get EOF

Note: Only Python is available in.ES30en format.


Related articles: