From scratch to learn Python Series - PART 1: acquaintance Python

Introduction to Python

Python is a Dutchman Guido van Rossum (Guido von Rossum, later he was called Guido) a programming language disclosure.

Python's history

  1. 1989 Christmas: Guido started writing Python language compiler.
  2. February 1991: The first Python interpreter was born, it is written in C language, you can call the C language library functions.
  3. January 1994: Python 1.0 released.
  4. October 2000: Python 2.0 release, Python entire development process more transparent, ecosystem slowly began to form.
  5. December 2008: Python 3.0 release introduces many new features of modern programming languages, but is not fully compatible with previous Python code.
Description : Currently I'm using Python version 3.7.6. When B represents a B increasing function update, the emergence of new functions; python version divided into three sections, shaped like ABC, wherein A represents the major version number, when the overall general rewritable or not backward compatible changes occur, increase A ; C represents the minor changes (for example: Fixed a Bug), as long as the modification increases C.

Python's advantages

Python's many advantages, listed a few simple for everyone.

  1. Simple and clear, as compared with many other languages, Python is easier to use.
  2. Open source, has a strong community and ecosystem.
  3. Can run on Windows, macOS, Linux and other systems.

Python applications

Currently Python Web server application development, cloud infrastructure development, network data acquisition (reptiles), data analysis, quantitative trading, machine learning, automated testing, automated operation and maintenance, and other fields are useless.

Installing Python environment

Want to start Python programming journey, first have to install the Python environment on a computer, simply means that the program was installed to run Python tools, often called the Python interpreter. We strongly suggest that you install Python 3 environments, it is clear that it is the better choice.

Windows environment

May Python official website to find the download (download) link and download the Python 3 installer. For Windows operating system, you can download "executable installer". Note that if you install Python 3 in the Windows 7 environment, you need to install Service Pack 1 patch (can be installed by some of the software features tools to automatically install system patches). When the installation wizard, remember to check the "Add Python 3.x to PATH" (Python 3.x will add to the PATH environment variable) option. After the installation is complete, you can open the Windows "command prompt" tool and enter the following command to check whether the Python interpreter installed successfully.

python --version
Description : Problems If the installation process display the installation fails or execute the above command error, most likely because your system is missing some Windows dynamic link library file caused. If you see api-ms-win-crt * .dll files are missing, you can refer to "api-ms-win-crt * .dll missing Cause Analysis and Solutions" treatment method of an article to explain or directly in Microsoft's official website to download Visual C ++ Redistributable for Visual Studio 2015 file repair. If it is because of Windows update DirectX when installing the game led to some dynamic link library file is missing after the problem, you can download a DirectX repair tool to repair.

macOS environment

macOS comes with Python 2, by the official Python website download link provided to find the right macOS of "macOS installer" to install Python 3, the basic installation process does not require any check, click on the "Next" button. After installation is complete, by entering the "terminal" tool python3command interpreter to call Python 3, because if the direct input python, will call the Python 2.

Description : If you have questions about the video explaining installed Python interpreter environment, you can reference available on the Baidu cloud disk. Links: https://pan.baidu.com/s/10y7sGM016YBM7gDdauGqLw , password: 4s6r.

to sum up

Here, we have to have a basic understanding of Python language, knows it can do a lot of things, so it is worth learning. Use Python to do development, you first need to install the Python environment on your computer, the installation method described above, we Python 3 environments under macOS and Windows both environments for everyone, I hope you can successfully install successfully, so we turned on the follow-up learning. If you encounter any problems during installation, you can contact bloggers to join our Q & A group.

Tips: If you think this column is not bad, we must remember to praise collection point yo! Continuously updated in ......
Published 348 original articles · won praise 235 · views 700 000 +

Guess you like

Origin blog.csdn.net/GUDUzhongliang/article/details/104927385