PythonBasic Tutorial
Python is an interpreted, object-oriented, high-level programming language with dynamic data types.
Python was invented by Guido van Rossum at the end of 1989, and the first public release was issued in 1991.
Like the Perl language, Python source code also follows the GPL (GNU General Public License) agreement.
It was officially announced that on January 1, 2020, updates to Python 2 would be discontinued.
Python 2.7 was determined to be the last Python 2.x version.
Who is this tutorial for?
This tutorial is suitable for developers who want to learn the Python programming language from scratch. Of course, this tutorial also goes deeper into some modules to give you a better understanding of Python applications.
This tutorial is mainly for learning Python 2.x. If you are using Python 3.x, please move tothe Python 3.X tutorial。
All examples in this tutorial are based on Python 2.7.
What you need to know before learning this tutorial
Before continuing with this tutorial, you should understand some basic computer programming terminology. If you have learned programming languages such as PHP or ASP, it will help you understand Python programming more quickly.
Execute Python programs
For most programming languages, the first introductory programming code is "Hello World!". The following code uses Python to output "Hello World!":
Python 3.0+ has made print a built-in function. The code to output "Hello World!" is as follows:
Related articles
Introduction to Python IDE (Integrated Development Environment)
Other extensions