Method 1:pythonw
Method 2:Change .py to .pyw (this actually uses a script parser)
In comparison, there are the following differences:
1) Execution without popping up a console window (also called DOS window)
2) All outputs to the original stdout and stderr are invalidated.
3) All reads from the original stdin will only result in an EOF.
Note: Only the Windows version of Python has the .pyw format.
Above this Python run does not show the solution to the DOS window is all I have shared with you, I hope to give you a reference, and I hope you support me more.