Python tutorial

Python is a computer programming language. You may have heard of many popular programming languages, such as the very difficult C language, the very popular Java language, the Basic language for beginners, the JavaScript language for web programming, and so on.

What language is Python?

First, let's cover the basics of programming languages. Programs are developed in any programming language to get the computer to do the work, such as downloading an MP3, writing a document, etc., and the CPU of the computer to do the work only knows the machine instructions, so, although the different programming languages vary greatly, eventually have to "translate" into machine instructions that the CPU can execute. And different programming languages, do the same work, the amount of code written, there is also a big gap.

For example, it takes 1,000 lines of code in C, 100 in Java, and maybe 20 in Python to accomplish the same task.

So Python is a pretty advanced language.

You might ask, isn't it good to have less code? The cost of less code is slow running: C programs run for 1 second, Java programs might run for 2 seconds, and Python programs might run for 10 seconds.

Is it true that the lower the program, the harder it is to learn, and the more advanced the program, the simpler it is? On the surface, yes, but advanced Python programming is also very difficult to learn at very high levels of abstraction, so advanced programming languages are not necessarily simple.

However, for beginners and for ordinary tasks, the Python language is very simple to use. Even Google is using Python on a large scale, so you don't have to worry about not learning.

What can you do with Python? Can do daily tasks, such as automatically backing up your MP3; You can do websites, many famous websites including YouTube are written in Python; You can do the background of online games, many of the background of online games are Python development. It's a lot of work.

Of course, there are some things Python can't do, such as writing an operating system, which can only be written in C; Write mobile apps only with Swift/ objective-c (for iPhone) and Java (for Android); Write 3D games, preferably in C or C++.

If you are a small white user, meet the following criteria:

  • Can use a computer, but has never written a program;
  • Still remember junior high school math equations and a little bit of algebra knowledge;
  • Want to go from a programmer to a professional software architect;
  • I can spare half an hour to study every day.
  • Don't hesitate, this tutorial is for you!

Don't hesitate, this tutorial is for you!

Are you ready?


0.  A brief introduction of Python
1.  Install Python
2.  First Python
3.  The Python
4.  The function
5.  Advanced features
6.  Functional programming
7.  Module
8.  Object-oriented programming
9.  Advanced object-oriented programming
10. Errors, debugging, and testing
11. IO programming
12. Processes and threads
13. Regular expressions
14. Commonly used built-in modules
15. Commonly used third-party modules
16. Virtualenv
17. Graphical interface
18. Network programming
19. Email
20. Access the database
21. Web development
22. The asynchronous I/o
23. In actual combat
24. FAQ
25. The final conclusion

Leave a Reply

Your email address will not be published. Required fields are marked *