The easiest way to learn a programming language is to first learn the basics and then try to build something with it (learn by doing). And it's better if you are building something you are actually interested in rather than something out of a book because it will get you to think about the problem and be more meaningful.
Python is easy to learn (not much syntax), easy to read (explicit vs implicit), has a big ecosyste m (more packages/libraries), is taught at universities so it's easy to find good programmers to help, and is used by many large websites/companies (e.g., Quora is programmed in Python) so it's a good language to know.
Online Python Tutorials (in order from introductory to more advanced):
Book to Get: "Python Cookbook", by Alex Martelli ( http://www.amazon.com/Py thon-Coo...
)
And if you're building something Web based, look at using the Flask Web Framework ( http://flask.pocoo.org/d ocs/
).
Python is easy to learn (not much syntax), easy to read (explicit vs implicit), has a big ecosyste m (more packages/libraries), is taught at universities so it's easy to find good programmers to help, and is used by many large websites/companies (e.g., Quora is programmed in Python) so it's a good language to know.
Online Python Tutorials (in order from introductory to more advanced):
- "A Byte of Python" http://www.swaroopch.com/
notes/P... - Google's Into to Python Class (online) - http://code.google.com/ed
u/langu... - "Dive Into Python", by Mark Pilgrim http://diveintopython.org
/toc/in... - "The New Boston" Programming Python Tutorials - http://www.youtube.com/us
er/then... - "Building Skills in Python", by Steven F. Lott - http://homepage.mac.com/s
_lott/b... - "Think Python: How to Think Like a Computer Scientist" -http://www.greenteapress.
com/thi... - "Code Like a Pythonista: Idiomatic Python" -http://python.net/~goodg
er/proje... - OpenCourseWare: MIT 6.00 Introduction to Computer Science and Programming - http://ocw.mit.edu/course
s/elect.... - MIT 6.01 Course Readings (PDF) - http://mit.edu/6.01/mercu
rial/sp... - Google's "Understanding Python" (more advanced talk) -
- "A Guide to Python's Magic Methods" - http://www.rafekettler.co
m/magic... - "Metaclasses Demystified" -http://cleverdevil.org/c
omputing...
Book to Get: "Python Cookbook", by Alex Martelli ( http://www.amazon.com/Py
And if you're building something Web based, look at using the Flask Web Framework ( http://flask.pocoo.org/d
Flask is a modern, lightweight, and well-documented Python Web framework so you won't have to spend much time learning it or fighting with it -- you won't find yourself asking, "Will I be able to do what I want in the framework without hacking it?" Flask let's you program in Python rather than writing to the framework like you typically have to in larger, opinionated framework's like Django and Rails.
在quora上看到的关于如何入门python的文章, 看了一下1, 2两个推荐,挺不错的。
http://www.quora.com/Python-programming-language-1/How-can-I-learn-to-program-in-Python