I already know how to deal with the original question. Sorry, as a beginner, there is still much to do. No matter what the responder is, thank you for your answers. However, running in CMD does not need to write python in the command to enable python to open py, while powershell does need to write python in the command. For other differences, let's talk about this, at the same time, let's talk about what python needs to do... I already know how to deal with the original question. Sorry, as a beginner, there is still much to do. No matter what the responder is, thank you for your answers. However, running in CMD does not need to write python in the command to enable python to open py, while powershell does need to write python in the command. For other differences, let's talk about this, at the same time, let's talk about what python needs to do... reply content:
The subject has modified the question. For the original question, you can view the question log. For the new question, I personally don't know much about Python, so I won't make a shift. You can refer to other people's answers.
-------------------------------------------------------------------------
Are you sure you want to die?
He didn't ask you to use. \ rr. py, and I remember that you only need python to start this file. If you have any questions
$ PROFILE
$ Env: PATHEXT + = ";. py"
The most common problem I encountered was coding. The codepage for cmd and powershell to display Chinese characters is different. If your codepage is not set. Text garbled. The program reports an error .. Python xx. py should be a file type interface provided by powershell that cannot directly identify xx. py. It requires you to write./xx. py to recognize this script. The latter format is more in line with the file expression in linux and easier to be recognized by the old shell file type interface.
The cmd file interface is newer. You can directly identify the xx. py file and call the python interpreter.
In fact, it is not so much trouble to write python xx. py. Incorrect. Please delete it.