Steps to enter python through cmd

The method to enter python from cmd is as follows

1 Enter python

Open cmd-enter python directly, as follows

2 Exit python

Method 1: Press Ctrl+z first, and then press Enter (Enter)

Method 2: Type exit() and press enter

Method 3: Enter quit() and press enter

Content expansion:

To run python under windows cmd, you need to set environment variables. You can't run python under cmd if you don't set environment variables. Now suppose python is installed in the C:Python25 directory. The method of setting environment variables is as follows:

Method 1: My Computer-Properties-Advanced-Environment Variables-System Variables, find PATH in the system variables, double-click PATH, and add ";C:Python25" at the end (no quotes)

Method 2: Shortcut key (WIN+R) Enter "cmd" in "Run" and enter set PATH=%PATH%;C:Python25 in the command prompt, and then enter python in the current cmd, namely Can run.

So far, this article on the steps to enter python through cmd is introduced. For more information about how to enter python content in cmd, please search for ZaLou.Cn's previous articles or continue to browse the related articles below. Hope you will support ZaLou more in the future. Cn!

Recommended Posts

Steps to enter python through cmd
How to enter python through the command line
Method steps to increase python font
How to enter python triple quotation marks
01. Introduction to Python
Introduction to Python
Centos 6.4 python 2.6 upgrade to 2.7
Centos 6.4 python 2.6 upgrade to 2.7
The specific steps to upgrade python on Raspberry Pi
Centos default python2.6 upgrade to
Solution to python alignment error
CentOS upgrade python2 to pyth
Python code to find bugs(7)
Python code to find bugs(4)
Python code to find bugs (3)
Python code to find bugs(9)
How to learn python quickly
How to uninstall python plugin
Introduction to Python related modules
Getting started python learning steps
Python code to find bugs(6)
Python code to find bugs(8)
3 ways to encrypt Python files
How to understand python objects
Python code to find bugs(5)
How to use python tuples
Python installation impala package steps