Some ready to use Python for the first time
Preface: Python with the characteristics of their body language simple and elegant style, feature-rich libraries, taking advantage of the large outlet data, machine learning, becoming one of the most popular programming language. Python is an object-oriented scripting language, easy to learn, has a simple syntax and data structures, easy to use, beginner-friendly programming, programming is also a good choice for entry. Life is short, I used Python.
First, pick the weapons conveniently
When just beginning to learn a new programming language, there are a lot of people would not know where to start, there will be "what code to write programs with" question "How to compile and execute procedures". Therefore, before you start learning Python programming, first of all to choose the right platform and tools.
1. Select the Python version
Currently, Python continues development update. There is a big difference between the two Python2.x and Python3.x, recommended Python3.x, the saying goes, "not the old with the new."
In Python official website to find the corresponding Python version to download and install.
2. Select the Python programming tools
Python programming tools here naturally refers to "be able to edit the source code and compile the implementation" of IDE
software. IDE: Integrated Development Environment, Integrated Development Environment
(1)IDLE
The official Python tools IDLE
, you can get the software after installing Python, written execution will bring up the source code Python Shell
(similar to the console), small and simple. IDLE
There syntax highlighting, auto-fill congruent, although the code is not very productive enough, but wins in readily available, lightweight and very easy to use.
(2)Visual Studio
There is no doubt, Visual Studio
is the most powerful integrated development environment, not one. According to Microsoft's own ecology, creating such a powerful developer tool, it could be one of the best in the world software industry productivity tools.
(3)Visual Studio Code
Visual Studio Code
Microsoft is based on the famous Electronic框架
built a text editor, has good scalability.
(4)Sublime Text
SublimeText
Editor is one of the developers of the most popular, although only an editor, but it has a wealth of plug-ins that support for Python development is in place.
(5)Wing IDE
Wing IDE
IDE is a powerful Python language, suitable for interactive Python development. Also supports automatic code completion, error checking codes, tips and other development skills
(6)PyCharm
PyCharm
Python is a professional integrated development environment, fully functional, is currently the largest number of people using the Python IDE.
Second, the road to open Python programming
1. Run the Python code fragment
Python comes running in the interpreter terminal window, without having to save and run the entire program can try to run the Python code fragment.
>>> print("Hello, Python!")
Hello, Python!