The study notes python environment to build

Python is a cross-platform, it can be applied to multiple platforms, including Windows, Linux and Mac OS X.

To start learning Python programming, we must first install the Python to your computer. After installation, you will get the Python interpreter (Python is responsible for running the program), a command-line interactive environment, there is a simple integrated development environment.

Install python 3.7

Currently, Python has two versions, one version 2.x, is a version 3.x, the two versions are not compatible. Since version 3.x is becoming increasingly popular, our tutorial will be the latest version of Python 3.7 is based.

White with a Mac Apple introduced only Gu installation, installation of other systems, please Baidu own.

Click on Apple's Launch Pad - Other - Terminal to open a terminal window:

Input: python Enter. Apple will see a version of the system comes with python 2.7.10

Because this is not the latest version, we want to upgrade to the latest version 3.7

MAC platform installation Python:

MAC systems comes with Python2.7 environment, you can link  https://www.python.org/downloads/mac-osx/  download the latest version of Python 3.7.4 installed on the install itself.

After installation is complete open terminal input python3

Now is not seen already python3.7.4 version on our end.

 

When we write Python code, you also need an interpreter (Integrated Development Environment)

Since the whole Python language interpreter from specification to are open source, so in theory, as long as the level is high enough, anyone can write Python interpreter to execute Python code (of course, very difficult). In fact, the existence of multiple Python interpreter.

Recommended: PyCharm

Integrated Development Environment (IDE: Integrated Development Environment): PyCharm 

PyCharm by JetBrains built a Python IDE, support macOS, Windows, Linux systems.

PyCharm 功能 : 调试、语法高亮、Project管理、代码跳转、智能提示、自动完成、单元测试、版本控制……

PyCharm 下载地址 : https://www.jetbrains.com/pycharm/download/

 

到这里我们万事俱备,马上开始学习python吧!!!

 

Guess you like

Origin www.cnblogs.com/yixiyoushang/p/11334810.html