The main content of Python can be broadly divided into the following sections:
- Process oriented. Includes basic expressions, if statements, loops, functions, and so on. If you have a base of any language, especially the C language, this is part of a minute understanding of Python's rules. If you do not have a language base, it is recommended to use Python programming as a reference. This book is an introduction to the nature of computer science textbooks, do not need programming foundation.
- Object-oriented, including basic object-oriented concepts, classes, methods, attributes, inheritance and so on. Python is an object-oriented language, "Everything is object." Object-oriented is difficult to avoid. Python's object-oriented mechanism is relatively loose, not as strict as Java and C + +. The benefits are easy to learn, easy to maintain, and the downside is easy to make mistakes.
- Application features include IO, data containers such as tables and dictionaries, built-in functions, modules, formatted strings, etc. These are often found in other languages, and have relatively strong practicality.
- Advanced syntax, context Manager, list derivation, functional programming, decorators, special methods, etc. These syntaxes are not necessary, and you can do so with the syntax of the previous comparison. The main reason to learn these advanced grammars is that they are too convenient. For example, a list of what can be done in a row, with a loop structure to several lines.
The standard library is just an interface for invoking functionality, and ultimately for Python and system interaction. This requires strong system knowledge, such as file system knowledge, process management, HTTP principles, socket programming, database principles ... If this knowledge is well-prepared, then the standard library is completely non-difficult to learn. However, the learning curve of these background knowledge is far steeper than that of Python itself.
The same goes for deeper Python learning, which requires a lot of background knowledge, not just python itself. If you're interested in Python's extensibility, you can try a lot of mixed programming. If you're interested in Python's build and run mechanics, you can dig into the depths of Python and see what the compiler does. If you're interested in the app, you can learn a few more of your own third-party packages. Learning this time, the spell is the realm, there is no definite method. Vast space to be explored.
Basically, after learning the subject content, Python still has to work on the project to practice. There are many types of exercises, such as Python Cookbook. But the better way is to think of some application scenarios and use Python to solve them. Like what:
- Building a website
- Make a web crawler
- System Management
Python is full-featured, so don't worry about the problem you're thinking Python can't solve (basically python can't solve the problem, other languages will not work).
Learning python to get directions and subjects