Learn a few tips for Python to share

Source: Internet
Author: User

Be familiar with the Python language and learn how Python is encoded.
Be familiar with the Python library and know how to find the corresponding module when you encounter the development task.
Know how to find and get a third-party Python library to cope with development tasks.

Install the development environment

If you are under window, go to download pythonxy to install it, then run Python and go to Python to explain the environment.
If you're under Ubuntu, execute: sudo apt-get install python, then run Python under the command line and enter Python to explain the environment.

Learning methods

As a mature developer, my habit of learning new things (assuming PYQT) is:
Search PYQT's official website directly with Google. Follow the official website's instructions to download PYQT. (If you are using Ubuntu to see if there are enough new versions in the Software Library), start reading the tutorials on the official website. While watching the tutorial, follow the tutorial using PYQT. If you find the tutorial is not comprehensive enough, Google search whether there is a corresponding teaching books can be seen. The sample is completed and a toy program is developed to check if you need to use the function.

Start learning Python

I suggest that you follow the process of learning as well as above, first over the Python official documentation:
Http://docs.python.org/tutorial/index.html
Then do http://www.pythonchallenge.com/this site above the topic.

If the card is too long, you can look at the answer (Google Python challenge answer) and look at how someone else's coding is different from what you've done.

Small Project

Once you're done, you'll find that you're already familiar with basic python development. Then do some small projects. Here are some topics to choose from that are interesting to do.

Write a simple calculator/bookkeeping software/Minesweeper Game (interface with PYQT library)
Write a chat room site (with the WEBPY framework, jquery refreshes the new reply)
Write a crawler, get Douban all the users above the location of the map location distribution histogram (with lxml analysis, save data to SQLite inside, with Matplotlib drawing)

FAQ

Q: If you have a problem, where do I go for help?
A: Go to HTTP://GROUPS.GOOGLE.COM/GROUP/PYTHON-CN (need to turn over the wall) or http://stackoverflow.com ask questions.

Q: How do I find a feature in Python?
A: Look at the official documents. Http://docs.python.org/library/index.html

Q: How do I complete a task (such as writing a website) in Python?
A:google:python Write a Web site, 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.