How do you run your code? Why is there the word python.exe on the console window? It is recommended that you add python to the path environment variable, and then go to your code folder to execute python testfile.py
test.txt and testFile.py must be in the same folder. If they are not in the same folder, you need to write the absolute path. Pay attention to how the windows and linux paths are written.
How do you run your code? Why is there the word python.exe on the console window? It is recommended that you add python to the path environment variable, and then go to your code folder to execute python testfile.py
test.txt and testFile.py must be in the same folder. If they are not in the same folder, you need to write the absolute path.
Pay attention to how the windows and linux paths are written.