Chapter 2 Explain the use of the program
Type on the command line
python
Or double-click the corresponding icon in the Windows environment to enter the Python interpreter. If you want to run a Python program stored in a file, you can use
python file name
form.
After entering the environment of the interpreter, the interpreter is called in an interactive state. In this state, the system uses the main prompt to enter the next command, which is generally three greater than the number (>>>). If you need to continue the line, the system uses the second prompt to enter the next command, the default is three decimal points (...). Type the file tail symbol at the main prompt (Control-D in UNIX and Control-Z in DOS or Windows) to exit the interpreter normally.
Some versions of the Python interpreter program support command line editing and command history, using a key combination using Emacs or vi.
Previous page12345678910Next pageRead the full text