I read it some time agoNine days Yan Ling (Http://hi.csdn.net/vagrxie)To start learning Python. It has been almost half a month now. As I am still preparing for my postgraduate entrance exam, I can only take two or three hours to complete my study every day. The result of these half-month learning is to write a mail sending and receiving client (download), The wxpython interface, and the Python built-in mail processing module for sending and receiving. Supports sending and receiving emails, multi-account management, and webpage mail display. These are not worth mentioning for the experts, but it still takes a lot of effort for me as a beginner.
Easy but powerful!
The general feeling is that the Python library is extremely powerful, so that the Python code density is very high, with the C ++ 10 lines of content, Python may be implemented in less than three lines. Of course, this will result in a loss of efficiency, but there will be no problem in implementing some small applications. Compared with C ++, Python syntax is very simple. Easy but powerful! I believe that Python will be popular in China within a few years. At that time, beginners will not need to learn VB and VF, so they will learn Python directly.
2. x or 3.x?
I used Python2.6, but I didn't choose Python3.0 because I found my introductory books on Python2.x. I will wait for my graduate students to study Python3.x. The IDE is used as the IDLE at the beginning, so there is no problem in practicing some Getting Started examples. Later I used Eclipse + pydev, and the automatic prompt function was very powerful. The defined class function can automatically add self. Here aleac hopes to try out the unused kids shoes, and this IDE is really good.
How to select a Python interface library?
I chose wxpython as the interface library, and initially used the built-in tkinter, which is very simple but weak in functionality. Wxpython has many built-in controls, which are very convenient to use. Wxpython's various mechanisms are a bit like mfc. Programmers familiar with mfc can quickly master wxpython, which is also one reason why I chose wxpython. I can use C ++ to write Qt interface programs for other interface libraries, but I did not find any way to write Python programs in Qt designer. Reading related articles on the Internet Qt is still good. I think you can master one of these interface libraries.
The schedule for postgraduate entrance exams is getting tighter, so I won't learn any new technologies in the past six months. Now, Python has come to an end. For those shoes that haven't touched Python, I suggest you study it as soon as possible. Python will surprise you.