Run a Python script under Windows with the Command Prompt We'll show you the difference, and how to run a Python script on Windows and Unix platforms. The way Python scripts are run on Windows versus Unix based operating systems is very different. After the interpreter is invoked, it reads and interprets the file. Then they save it with a ".py" extension, which indicates to the operating system and programmer that the file is actually a Python program. Generally programmers write stand alone scripts, that are independent to live environments. Executing a Python program can be done in two ways: calling the Python interpreter with a shebang line, and using the interactive Python shell. When you run a Python script, the interpreter converts a Python program into something that that the computer can understand. If you can't execute or run a Python script, then programming is pointless. Last Updated: Tuesday 17 th September 2013
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |