I have long heard that python is powerful and never touched upon it. I recently spent some time studying it and found that it is really unusual. Compared with other languages, it does have its own characteristics and advantages. I used to use C ++ all the time. After reading python, I found that the language is indeed concise and flexible, implementing the same function, the amount of code is indeed much less than that implemented in C ++. In addition, Python has many packages that implement different functions, including official and third-party packages, which are indeed convenient to use. For example, Python's network programming function is very powerful, it is convenient to implement socket, HTTP connection, URL analysis, crawler, etc. This is just some preliminary understanding and feelings of myself as a beginner of Python and a novice of Python. I still need to learn more about the specific situation before I can understand it. Next, I will share some suggestions with beginners Based on the python learning process.
First, you can find an entry-level book or tutorial on python to learn the syntax and usage of Python.
I first read an easy-to-understand overview of an entry-level book head first python, and I learned grammar and practice. The example is also very interesting. Then, I found a very good entry-level tutorial on the Internet.
Second, read the tutorials on the python official website (for example, the 3.2 Tutorial: http://docs.python.org/3.2/tutorial/index.html)
This tutorial should be the most authoritative and detailed. It is suitable for comprehensive learning of the Python language. It is worthwhile to read this tutorial carefully after getting started or having some one-sided understanding of Python.
Third, check Python official documentation at any time (for example, version 3.2 documentation: http://docs.python.org/3.2/index.html)
The official Python documentation is very authoritative and comprehensive, including how to install, how to install the python module, how to publish the python module, tutorials, and API queries. It is very powerful! I really admire what foreigners do. I like the style of dealing with foreigners very much. It is "considerate.
I want to emphasize the API query function. When I first started using python, I must be unfamiliar with Python's built-in modules and APIs. I may not know a module or function in the future, or use the method. At this time, you must query the official documents. There is quick search on the left side of the webpage. Enter the items you want to query here. It is emphasized that you can query official documents at any time when learning and using python.
Fourth, find the actual program or project to practice, or read others' code.
When reading books or grammar, you cannot really grasp the language. First, you can find programs written by others to learn, or write programs to implement certain functions. This is widely used. If you are interested in any type of programs, you can search for them online. For example, you can use the network: python is used to call Sina Weibo APIs, Python crawlers, and python for web development. For the interface, python is used to write GUI programs. In addition, we recommend a website: the python developer community. There will be some Python applets shared above, which can be used as an entry-level exercise.
Fifth, read an in-depth and comprehensive Python book, such as "Python core programming ".
(I have not done this step yet)
[Python regular expression]
Http://wiki.ubuntu.org.cn/Python%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E6%93%8D%E4%BD%9C%E6%8C%87%E5%8D%97
Http://docs.python.org/2/library/re.html? Highlight = Re # Re
[Python character encoding & Chinese]
Http://www.cnblogs.com/huxi/archive/2010/12/05/1897271.html
[Function modifier '@' in Python '@']
Http://www.cnblogs.com/xupeizhi/archive/2013/02/07/2908600.html
[OS. Name]
The name of the operating system dependent module imported. the following names have currently been registered: 'posix', 'nt ', 'os2', 'ce', 'java', 'riscos'
Print incorrect stack information]
Import traceback
Print> SYS. stderr, traceback. format_exc ()
[Powerful command line parameter processing-optionparser module]
Http://blog.csdn.net/lwnylslwnyls/article/details/8199454