Home  >  Article  >  Backend Development  >  How to learn python

How to learn python

(*-*)浩
(*-*)浩Original
2019-07-15 09:11:0937993browse

Before learning Python, choose a good direction

How to learn python

I believe that most people must have understood this language before learning Python, and they also know Python has many learning directions, such as data collection (crawlers), or Web development, or the artificial intelligence direction that has been particularly popular recently. Each direction requires different technologies, so after we learn the basic syntax of Python, we must carefully choose our future advanced direction. (Recommended learning: Python video tutorial)

Learning the basic language of Python

is just like learning other programming languages ​​or learning a foreign language , we should start learning from the basic syntax of Python to understand what are Python variables, what is a loop, what is a function, and what is a module. class etc. In short, the foundation is the cornerstone for learning advanced development in the future.

Learn Python file operations

After learning the basics, we must make some simple connections. File operation is our only choice, because whether it is a text file. XML format files are still Office series files. We collectively call them file operations.

When we learn file operations, we need to learn how to write and read files and understand the different knowledge points about reading and writing between various files. I believe that after completing the study, you will be able to operate files with ease.

Learn Python's database programming

After we learn and complete Python's file operations, we will definitely have a certain understanding of the inconvenience of files. So this time we have to learn Python database programming. Databases include Mysql database, Oracle database and Sqlite database. The Sqlite database is owned by Python itself, while other databases require us to install corresponding operation modules.

Generally, we can just learn the operation of Mysql database. Adding data, deleting data, and querying data in the database and the corresponding SQL statements are the focus of our study.

Learn Python network programming

In our era, I believe that most people cannot do without the Internet, and we must learn network programming. Generally speaking, it is enough to understand three aspects.

1. Write the basic TCP connection, know the various steps of writing TCP, such as creating socket, binding port, port reuse, etc., have a little understanding of TCP, know each field of the protocol, and understand it three times Handshake

2. Understand basic server concurrency models, such as multi-process, multi-thread, IO complex

3. Understand some network libraries such as twisted

More Python related technologies Article, please visit the Python Tutorial column to learn!

The above is the detailed content of How to learn python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn