How do I run a .PY file in CMD?

Minh Phượng

New member
How do I run a .PY file in CMD?
Answer
Run your script
  • Open Command line: Start menu -> Run and type cmd.
  • Type: C:\python27\python.exe Z:\code\hw01\script.py.
  • Or if your system is configured correctly, you can drag and drop your script from Explorer onto the Command Line window and press enter.
 

Tìm kiếm

Back
Top