Several suggestions for learning python

Source: Internet
Author: User

Familiar with the python language and the python encoding method.
Familiar with the python library and know how to find the corresponding module when encountering a development task.
Know how to find and obtain third-party python libraries to cope with development tasks.

Install the development environment

If you download and install pythonxy in the window, run python and enter the python interpretation environment.
If you are running sudo apt-get install python in ubuntu, then run python in the command line to enter the python interpretation environment.

Learning Methods

As a mature developer, my habit of learning new things (assuming pyqt) is:
Use google to search for the official pyqt website. follow the instructions on the official website to download pyqt. (If you are using ubuntu, check whether there are enough new versions in the software library.) During the download process, read the tutorials on the official website. after reading the tutorial, follow the tutorial to use pyqt. if you find that the tutorial is not comprehensive enough, you can use google to search for corresponding teaching books. after learning the example, develop a toy program to test whether you need the functions.

Start learning python

I suggest you follow the above steps and first go through the python official documentation:
Http://docs.python.org/tutorial/index.html
Then do http://www.pythonchallenge.com/the questions on this website.

If it takes too long to get stuck at a certain level, you can check the answer (google python challenge answer) and check whether others' encoding methods are different from your own.

Small projects

After you finish it, you will find that you are familiar with the basic python development. Then, let's do some small projects. Here are some questions to be interested in.

Write a simple calculator/accounting software/mine clearance game (using the pyqt Library as the interface)
Write a chat room website (use webpy framework and jquery to refresh new replies)
Write a crawler to get the locations of all users on douban and draw the histogram of location distribution (use lxml to parse, save data to sqlite, and use matplotlib to draw images)

FAQ

Q: Where can I seek help when I encounter a problem?
A: On the http://groups.google.com/group/python-cn (need to flip the wall) or http://stackoverflow.com to ask questions.

Q: How do I find a function of python?
A: see the official documentation. http://docs.python.org/library/index.html

Q: How to Use python to complete a task (such as website writing )?
A: google: python write website, or google: python web development.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.