How to learn Python?

Source: Internet
Author: User
Tags php tutorial
These two days to learn grammar, threading something, a rough grasp of pygtk,ctypes. Find a lot of modules now? Next is to understand the module? Well, what do you know about modules?

Reply content:

In fact upstairs said is very good.
In fact, learning a language is very simple, know the way its probably, the key is the data structure and algorithm.
With the need you learn naturally quickly, just call some of their packaged APIs.
Scripting languages are easy to use. Follow.
Thread is nothing more than a few ideas, know how to share variables, understand the lock processing mechanism, know how to use is OK,
As for threads that need to look at the requirements, scripts are rarely used in the case of multithreading, writing good things, packaged into their own modules for later use, but also very convenient, for example, I made the email, from the Web page to grab pictures, these can also be used in the future, directly called before the module can be written well, So I feel it is very convenient to use it.
Answer the same name newbie (novice). Say something about my python path:
    • At first, I liked the philosophy of Python, and then bought a Python learning Handbook, which gave you a simple look at Python.
    • But because there is no real demand, just understand, and then do their own web site with Django, and then do a site with Tornado, study the source of Tornado, you can say that Python has a deeper understanding of it
    • Later on Unix to write some of their own scripts to use, this time can be said to feel the power of Python, solve a lot of practical problems
    • Now often find some web site vulnerabilities, and then use Python to write some script, to do something interesting. This time can be said to really fall in love with Python. Simple and powerful.

For learning a language, everyone is not the same way, but the important thing is to follow the interest, you search the internet about Python, nature can find your interest.
I hope you can fall in love with Python rather than learn a programming language.

----------------Supplement-------------------
Recently read "Ruby Meta-programming", has been a lot of Ruby's symbolic syntax is not cold, but this book is really a good book, whether you like Ruby, read this book, to learn dynamic language is of great help.

----------------Supplement-------------------
After 1 years of answering this answer, there is no ' love ' for Python, just seeing its pros and cons, and knowing its capabilities.
At present, the non-working language is mainly scala,scala with its problems and complexity, but if it can be mastered, it is indeed a good tool to improve productivity.

0. Start with a starter dish

The Python chapter of learning a language in minutes

1.Python Development Tutorials

Liu Co A great Python tutorial, I've seen one of the best-written Python development tutorials, including a tutorial on the two major editions of Python2.7 and Python3.

Address: Python Tutorial-Liaoche's official website



2.WEB development generally uses a few frameworks.

Take a look at Liao's big tutorial, and then use the open source framework to do a little practical project. Django is a good web development framework. Here are some of the good learning materials I have collected.

2-1) Django Basic tutorial

    • Liberated Jiang Ge 01 to the horizon
    • The liberated Jiang Ge 02 Manor-House of doubts
    • Liberated Jiang ge 03 the so-called Iraqis
    • Liberated Jiang ge 04 picking
    • Liberated Jiang ge 05 black-and-black Butler
    • The liberated Jiang Ge 06 false for true time
    • The liberated Jiang GE 07 nonstop

2-2) Django practiced hand project ( using the Django Development blog ):

    • Django Common Commands
    • Django Development Blog (1) Getting Started
    • Django Development Blog (2) templates and data queries
    • Django Development Blog (3) static files, from apps and customizations
    • Django Development Blog (4) Comments Library usage and AJAX support
    • Django Development Blog (5) markdown support, code highlighting, Gravatar avatar service
    • Django Best Practices (Chinese version)
3. Python Practice Project
    • Python Project Practice one: Instant tagging
    • Python Project Practice two: frame good picture
    • Python Project Practice three: the Almighty XML
    • Python Project Practice IV: News Aggregation
    • Python Project Practice V: Virtual Tea Party
    • Python Project Practice VI: Remote editing with CGI
    • Python Project Practice Seven: Customizing the Bulletin board
    • Python Project practice eight: Using XML-RPC for remote file sharing
    • Python Project Practice 10: DIY Arcade Games
    • Python Project Practice nine: File sharing 2-gui
4. Other resources that are more useful
How do I get started with Python crawlers? -by Serco's answer
Python Regular Expression Guide
"Dry" python crawler/Text processing/scientific computing/machine learning/data mining weapon spectrum
Python Wsgi Detailed

Finally, http://www.the5fire.com/ Also have a lot of good learning resources. According to you, you have mastered the basics of Python, but do not know what to do afterwards.
Learning programming is often the case, the grammar is read, and then there is nothing to do. Go back and forget about it for a while.
But if there is a common learning, the situation will be much better, can discuss in which direction in depth, what to see what aspects of content, what textbooks, to do what to try. You can even work with a larger project practiced hand.
Welcome you to our programming classroom to communicate together, there are many beginners like you, there are many directions for you to explore.
Crossin's Programming classroom
: Crossincode
QQ Group: 295921816 small white python Getting Started Tutorial: Python tutorial-Liaoche's official website
From beginner to proficient, the actual combat project also has an iOS App
With the online Python code interpreter, learn to tap the code in the browser to quickly learn about Python's valuable resources:
  • Official Documentation Tutorial: docs.python.org/tutorial/
  • ' Dive into Python ' by Mark pilgrim-www.diveintopython.net/
  • "A Byte of Python"-Swaroopch.com/notes/python
  • Google's Python Introductory course (online)-code.google.com/edu/languages/google-python-class/
  • "Building Skills in Python", by Steven F. lott-homepage.mac.com/s_lott/books/python/html/index.html
  • "Think Python:how to Think like a computer scientist"-greenteapress.com/thinkpython/thinkpython.html
  • "Code like a pythonista:idiomatic Python"-python.net/~goodger/projects/pycon/2007/idiomatic/handout.html
  • MIT Development Course 6.00 Introduction to Computer science and programming-ocw.mit.edu/courses/ electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/ Video-lectures
  • "Learn Python" by Zed shaw-learnpythonthehardway.com
  • Python Practice Tutorial-pyschools.com
  • Getting started with Python-beginpython.com
  • More Tutorials-awaretek.com/tutorials.html
  • Learnstreet Python Course:http://www.learnstreet.com/lesso ...
  • For Beginners: Codecademy
  • Beginner: Learn Python programming Through Example
  • Python screencasts-neckbeard Republic -bite-sized python screencasts
I recommend you take a look at Alex's Python video and get started very well, I just learned his video.

/ http Edu.51cto.com/course/co urse_id-1139.html How to learn python well? How to apply Python flexibly?



According to My learning experience, I summed up the following 10 points to share with you:

1) The first step to learning Python is to go welcome to python.org immediately. Download a python version of the website. I recommend that beginners do not download an integrated development environment with IDE functionality, such as the Eclipse plugin.

2) Once the download is complete, you can start learning. During the learning process, I suggest that you can download some Python learning documents, such as "dive into Python", "oreilly-learning python" and so on. Learn grammar, grammar, function syntax, mathematical expressions, etc.

3) After learning the basic grammar, you can do interactive learning. Python has a good interactive learning model, for example in books we can drill through the interactive platform, through practice to deepen the impression, to achieve the purpose of learning.

4) After learning from the above three steps, we have roughly mastered Python's common methods, keyword usage, and function syntax. After the study, we can start to learn the use of common modules, such as os,os.path,sys,string modules. We can be familiar with the function in the interactive environment, if you encounter the use of the function of the problem, you can refer to the Python installation of the self-contained CHM help file.

5) in order to get a better grasp of python, our learning can not just stop at learning some grammar or API stages. In this phase, we can try to solve some of the problems in our project with Python, if the project is not developed in Python, then we can think about whether we could use Python to make some tools (utility) that can be used by the project team to simplify the task of team members. and improve our efficiency. If there is no project, we can also find some problems to practice their own practice.

6) After the above exercise, our knowledge level of Python is definitely getting higher. After the study, we will go to the next level. In order to apply it to the project development or product development, we must also learn the network and database knowledge that must be mastered in enterprise application development. In this study is not only the Python language itself learning, if not previously learned and mastered the network and database knowledge, at this stage we can take this opportunity to cram a.

7) Here, I think our use of Python and the very handy, even if we forget the usage of the API, we can also in a short period of time by viewing the document to use the API. Then what are we going to learn? That is the design ability, in the process of learning the design ability, if the object-oriented concept of the class is not clear, at this stage can also learn or to be consolidated. Just as aircraft designers design airplanes to be designed by learning models, we can also learn to design by learning classic examples from books. Once we have the basic concept of design, we can begin to design our program. In this phase, it is important for us to learn abstract ideas and to design our modules by isolating the points of change.

8) To this stage, we are already really getting started. In the next work, is to quickly through what we learn to serve the project. At this stage, in addition to mastering Python's own modules, we are better off with some of the industry's most widely used open source frameworks, such as twisted, Peak, Django, XML, and more. By skilled use of them, to achieve lightning development, greatly saving the project valuable time.

9) You are already a Python expert, at this stage, we will encounter some deep-seated, specific difficult problems in the work. In the face of these problems, we already have their own thinking direction and ideas. We often go online to watch Python's latest developments, the latest Python technology and open source projects, and we can participate in the Python forum and make friends with some of the community's Python friends.

10) You are already a Python expert and at this stage you should be a Python technology propagator. Open an altar session in your organization from time to time and spread your Python insights on your blog. You will go to the forum to help colleagues solve their problems, you will give welcome to python.org The website offers your valuable advice and suggestions for the development of Python language.

The learning of any knowledge is endless, and Python's learning is not otherwise. After mastering Python's usage, API and framework, we need to learn design patterns, development methodologies, etc.

Basic PHP Tutorials
Webmaster Aggregation in PHP tutorial
Landlord can look at this, I hope you have some help. The question should be how to learn to program by learning Python better.
Learning programming can not only learn grammar, need to learn computational thinking, programming ideas.

Please look at the article written by Huanggo himself.
How to break the layer of Python-programmed paper
Article/pythonstudy.md at Master Pythonpeixun/article GitHub

Scissors stone cloth Small exercise three languages python2, PHP, go code
Article/jdstb.md at Master Pythonpeixun/article GitHub
A small code description of the use of the @property adorner
A small code description of the use of the @property adorner

Huanggo Python Remote Video training course
Article/index.md at Master Pythonpeixun/article GitHub

Huanggo Python training preview video playback address
Article/python_shiping.md at Master Pythonpeixun/article GitHub
Dieim Python training _python programming Ideas 1.flv

Dieim Python training _python programming Ideas 2.flv

Dieim python Training _python Training _python crawler. flv

Dieim python training _python training _while cycle. flv

Dieim Python Training Python training programming ideas three. flv

Dieim Python Training Python training function abstraction. flv

Dieim Python Training Python training class abstract. flv

Dieim python Training python training nested functions. flv

Dieim Python Training Instance object for Python training. flv

Dieim python training _sublime text configuration. flv

Dieim python training _tornado's Hello world.flv

Dieim python training _web.py Hello world.flv Programming These things, is a truth, do not deliberately remember what, write a practical project to get started naturally, to find some real project opportunities. Write more, Nature will know the next step how to further study.
  • 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.