Information reference: Liaoche's official website https://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/ 001407375700558864523211a5049c4983176de304549c8000
First, write in front
I am now in the next semester in junior year, less schoolwork, more abundant free time. In junior high, I learned "artificial intelligence" and "Introduction to Natural language processing," a major elective, wrote a few simple Python code (in fact, are online grilled). There was no systematic learning of the Python language, so there was nothing to be said about Python, a paste in the brain. There are several versions of Python in the system, and when something goes wrong, the face is crazy. I'm going to learn the language of Python recently, so I'm going to fill the basics with a little bit from scratch.
Second, the Python interpreter: responsible for running the Python program
Before programming with Python, we need to install Python on the computer. After installation, we get the Python interpreter, a command-line interaction environment, and a simple integrated development environment.
When we write the Python code, we get a text file that contains the Python code with a. py extension. To run the code, you need the Python interpreter to execute the. py file.
The Python interpreter is independent of each other and does not affect each other.
Third, the Python interpreter under My Computer
must NOTE: The system comes with the Python interpreter do not move!!!
As you can see from the diagram below, there are 5 versions of the Python interpreter in My computer, with 2.6 and 2.7 versions of the two systems, a 3.6 version downloaded from the official website, and a version of the homebrew installation and a venv installed version.
I finally understood how many versions of Python had come before me ...
Python Learning Note 01:python interpreter