TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

What did you use to teach yourself Python?

54 点作者 humanlever超过 16 年前

36 条评论

qhoxie超过 16 年前
Byte of Python: <a href="http://www.swaroopch.com/notes/Python" rel="nofollow">http://www.swaroopch.com/notes/Python</a><p>Dive into Python: <a href="http://diveintopython.org/" rel="nofollow">http://diveintopython.org/</a><p>Both great and free books.
评论 #378917 未加载
nostrademons超过 16 年前
Python tutorial: <a href="http://docs.python.org/tutorial/index.html" rel="nofollow">http://docs.python.org/tutorial/index.html</a><p>And library reference: <a href="http://docs.python.org/library/index.html" rel="nofollow">http://docs.python.org/library/index.html</a>
评论 #378621 未加载
评论 #378615 未加载
olifante超过 16 年前
I used an older edition of O'Reilly's Learning Python and found it to be very accessible and well written -- I'm surprised it hasn't been mentioned before: <a href="http://oreilly.com/catalog/9781565924642/" rel="nofollow">http://oreilly.com/catalog/9781565924642/</a><p>O'Reilly's Programming Python is not bad, but it's not a great book, either for beginners or journeymen.<p>Python in a Nutshell is more suitable as reference book, although I suppose you could use it to learn Python. For a Python reference book, I found David Beazley's Python Essential Reference to be more informative and better organized: <a href="http://www.amazon.com/Python-Essential-Reference-Developers-Library/dp/0672328623" rel="nofollow">http://www.amazon.com/Python-Essential-Reference-Developers-...</a><p>As other people have mentioned, Guido's online tutorial is pretty good, and you don't really much else to start programming in Python: <a href="http://docs.python.org/tutorial/index.html" rel="nofollow">http://docs.python.org/tutorial/index.html</a><p>I'm always puzzled by people recommending Mark Pilgrim's Dive into Python. I don't find it a good choice for Python beginners.
mathogre超过 16 年前
Two things: lots of risk and the O'Reilly book, "Learning Python."<p>I work for a company and was running a research project in air traffic control worth ~$400K. I was the principal investigator. We were going to create a tool that would redesign the airspace boundaries managed by a controller or controller team. At the time, I programmed in C, Awk, and a little Perl. I'd used Python at the command line, but had never programmed in it. I knew however it was the language we needed. I committed to it, and my partner agreed to it. We both learned Python on our own and the project succeeded. It had to succeed. If it didn't, we were in lots of trouble. We had company VPs watching us.<p>The Learning Python book is superior to the Programming Python book. While both are written with the same author, the Learning book is far more readable.<p>My favorite ongoing resource today is the documentation that comes with Python. I have a copy of it installed on the Linux box at work, and on my Macs at home. It is hands-down the best quick reference for the language.
kaens超过 16 年前
I used the python tutorial and library reference in addition to "Python in a Nutshell" ( <a href="http://oreilly.com/catalog/9780596001889/" rel="nofollow">http://oreilly.com/catalog/9780596001889/</a> )<p>With a healthy amount of coding, I've gotten very comfortable with python, although I still feel like I'm not quite utilizing it idiomatically. As such, I've been going through Programming Python ( <a href="http://oreilly.com/catalog/9780596009250/" rel="nofollow">http://oreilly.com/catalog/9780596009250/</a> ) - which is very well written, IMO - as well as reading a healthy amount of other people's source code, notably CherryPy ( <a href="http://cherrypy.org/" rel="nofollow">http://cherrypy.org/</a> ), since I use it a lot.<p>If you're experienced with other languages, I'd suggest implementing something like a tetris clone as an exercise in learning the language. If you're only experienced with web-dev (as is often the case these days), I'd recommend implementing a few small web-apps with CherryPy - it's the most "pythonic" "web framework" I've seen so far.<p>Oh, and keeping an eye on the mailing lists ( <a href="http://mail.python.org/mailman/listinfo" rel="nofollow">http://mail.python.org/mailman/listinfo</a> ), particularly python-list, python-ideas, python-dev, and python-3000, can be very enlightening.
truebosko超过 16 年前
I pretty much begin doing projects in it. Started with some basic web scrapers, then I built a site in Django. Yes, I was one of those bastards that was learning Python AND Django at the same time, but it worked out for me.<p>I read the Python tutorial, and I have Python in a nutshell which I find is a great way to look something up and get a pretty good, detailed explanation on it.
评论 #378706 未加载
bluishgreen超过 16 年前
<a href="http://www.pythonchallenge.com/" rel="nofollow">http://www.pythonchallenge.com/</a>
评论 #378657 未加载
quickpost超过 16 年前
I just started trying to solve problems on <a href="http://projecteuler.net/" rel="nofollow">http://projecteuler.net/</a> with it, and learned a ton about it.
bprater超过 16 年前
I'm always in the middle of learning a new language or framework, and the general pattern is always the same:<p>Read a bunch, get a project idea, start hacking on it to practice "muscle memory", use reference documentation a lot, go back and re-read -- picking up lots of info you missed the first time, get back to hacking. Keep cycling.<p>Many moons ago, I distinctly remember reading the 'Programming Perl' book 7 times before I finally felt like I understood what I was doing.
Jasber超过 16 年前
Glancing at the standard Python modules is a great way to learn. They are generally high-quality and will reveal many hidden tricks within Python (this is where I learned generator expressions).<p>Also I like Googling for "python tricks" as there are many gems hidden just waiting to be discovered. Here are a few examples:<p><a href="http://kogs-www.informatik.uni-hamburg.de/~meine/python_tricks" rel="nofollow">http://kogs-www.informatik.uni-hamburg.de/~meine/python_tric...</a><p><a href="http://www.siafoo.net/article/52" rel="nofollow">http://www.siafoo.net/article/52</a><p><a href="http://stackoverflow.com/questions/101268/hidden-features-of-python" rel="nofollow">http://stackoverflow.com/questions/101268/hidden-features-of...</a>
gaius超过 16 年前
Thing with Python is that it combines a shallow learning curve with very quick payback. You can use it as a glorified shell script if you want, and very quickly get something useful done, then anything you learn will have an immediate application to your next project. That's how I got into it. Then you go back and realize, hey, this for loop would be better as a list comprehension, these functions would work better together if I put them in a class, and refine your code.
kqr2超过 16 年前
Also, there are some good google tech talk videos:<p><a href="http://video.google.com/videoplay?docid=7760178035196894549" rel="nofollow">http://video.google.com/videoplay?docid=7760178035196894549</a><p>Python Design Patterns: <a href="http://www.youtube.com/watch?v=0vJJlVBVTFg" rel="nofollow">http://www.youtube.com/watch?v=0vJJlVBVTFg</a>
tdavis超过 16 年前
I bought <i>Beginning Python</i> from APress, read through it in a day or two, then just started hacking. From then on the only things I used were the official Python library reference and any existing code I happened to be hacking on. Occasionally I'd look up articles on the Web about something I wanted to learn more about (decorators, meta-classes, etc.)<p>The folks in #python are also very helpful.
flashgordon超过 16 年前
Actually I used "the" tutorial at python.org. But simultaneously I dived into it by writing web apps (which I was learning as well). In fact I wanted to learn writing webapps (and man there is so much more left aaaaah) and it came down to a choice between ruby and python. I went for python. And no, I am not going into why I chose one over the other!<p>So I just learnt it by writing several simple apps (thanks to django) and subscribing to a whole bunch of blogs to learn tips and tricks incrementally over time.
sunmaster13超过 16 年前
<a href="http://www.pythonchallenge.com/" rel="nofollow">http://www.pythonchallenge.com/</a><p>Really fun and challenging projects from image and audio processing to network programming. Each level is a computing puzzle which you must solve to progress to the next level. Very helpful forum too, which you will be needing since you'd have no idea about the techniques (the relevant python libraries and such) involved at the start.
rflrob超过 16 年前
I had a job where (among other things) I was teaching Python (and the VPython package) to high schoolers. That made me comfortable with it. Combined with PyLab and a need to wean myself from matlab before graduation, I worked on a few homework projects for other science classes. And most recently, I've been doing project euler.
hetman超过 16 年前
I was put onto a Python project at work so I started with the best quick reference I could find (wikipedia!) and then went from there.<p>Started at: <a href="http://en.wikipedia.org/wiki/Python_" rel="nofollow">http://en.wikipedia.org/wiki/Python_</a>(programming_language) <a href="http://en.wikipedia.org/wiki/Python_syntax_and_semantics" rel="nofollow">http://en.wikipedia.org/wiki/Python_syntax_and_semantics</a><p>Found most other details on here: <a href="http://www.python.org/dev/peps/" rel="nofollow">http://www.python.org/dev/peps/</a> <a href="http://www.python.org/doc/" rel="nofollow">http://www.python.org/doc/</a><p>There's some good online tutorials to ease into some of the trickier details like metaclasses and descriptors.<p>I was already coding Ruby before this (and some LISP before that) so the whole dynamic language thing was familiar enough I could get away with mostly references. Your milage may vary :)
charrington超过 16 年前
I used a now-out-of-print book by Aaron Watters: Internet Programming with Python. <a href="http://www.amazon.com/Internet-Programming-Python-Aaron-Watters/dp/1558514848/" rel="nofollow">http://www.amazon.com/Internet-Programming-Python-Aaron-Watt...</a><p>Python totally changed my world.
rksprst超过 16 年前
Just start working on a project and figure things out as you go.
ujj超过 16 年前
thinkpython.com - although its supposed to be an introduction to programing using python but it suited me really well, even though I was a C++ programmer for four years. You can skip the basic parts and run through some of the explanations which are for a new programmer but all in all a rapid start guide for python.
ideamonk超过 16 年前
I'm using the freely available thinkpython.pdf from <a href="http://www.greenteapress.com/thinkpython/" rel="nofollow">http://www.greenteapress.com/thinkpython/</a><p>here's my setup - <a href="http://ideamonk.blogspot.com/2008/11/playing-with-python.html" rel="nofollow">http://ideamonk.blogspot.com/2008/11/playing-with-python.htm...</a><p>I just wrote a script to getch results of all my batchmates from the college result site... :) <a href="http://sites.google.com/site/ideamonks/Home/107result.txt" rel="nofollow">http://sites.google.com/site/ideamonks/Home/107result.txt</a>
whatusername超过 16 年前
"How to think like a computer scientist" is a text for teaching you programming concepts using python as a framework.. From what I've seen of it, it's pretty good. <a href="http://www.greenteapress.com/thinkpython/thinkpython.html" rel="nofollow">http://www.greenteapress.com/thinkpython/thinkpython.html</a><p>If you know all the programming concepts well - then go with Dive Into Python
burrokeet超过 16 年前
I actually learned it recently by writing a small app for the Google App Engine and referencing the python docs.<p>After that I started learning Django using the Django docs and <a href="http://www.djangobook.com/" rel="nofollow">http://www.djangobook.com/</a> and this kind of rounded out the python bits as I went along<p>Haven't actually made reference to an actual Python book yet
dmoo超过 16 年前
The activestate download "<a href="http://www.activestate.com/Products/activepython/index.mhtml" rel="nofollow">http://www.activestate.com/Products/activepython/index.mhtml</a>" for windows came with a nice helpfile which bundled a couple of tutorials, dive into python, library reference and lots more. A good place to start.
macco超过 16 年前
A very good book is Core Python Programming by Wesley Chun. : <a href="http://www.amazon.com/Core-Python-Programming-2nd/dp/0132269937/ref=pd_bbs_sr_1?ie=UTF8&#38;s=books&#38;qid=1227823271&#38;sr=8-1" rel="nofollow">http://www.amazon.com/Core-Python-Programming-2nd/dp/0132269...</a> But it is not for total beginners.
randomwalker超过 16 年前
The ipython shell (<a href="http://ipython.scipy.org/" rel="nofollow">http://ipython.scipy.org/</a>) was great to experiment and learn with, and it's a huge productivity boost every day. It's where I do most of my work. It would be very hard for anyone going back to the plain python shell after trying ipython.
thorax超过 16 年前
If you're new to Python and play games like Counter-Strike: Source and Team Fortress 2, try out EventScripts to customize the game: <a href="http://python.eventscripts.com" rel="nofollow">http://python.eventscripts.com</a>
joshsharp超过 16 年前
Dive into Python: <a href="http://diveintopython.org/" rel="nofollow">http://diveintopython.org/</a> And then I bought Python in a Nutshell, which covers a lot of things in more depth, with decent examples. Recommended.
arthole超过 16 年前
David Beazley's Python Essential Reference.<p>you can do chapter 1 examples with the python basics in the interpreter and go from there. by far the easiest and best programming book I've ever come across.<p>All the basics in one remarkably short chapter.<p>of course, you'll have to have an understanding of concepts, like lists for instance. but it's so easy to play around in python you can figure those things out, and how they work on your own.<p>then use the python cookbook to hack up your own scripts. break them down to simple versions and you'll learn a lot when solving your own problems.
Eliezer超过 16 年前
Python.
travisjeffery超过 16 年前
I read a ton of different things including everything mentioned thus far and found the online tutorial written by Guido to be the most beneficial.
andr超过 16 年前
Project Euler + Django
mamama超过 16 年前
The Hazel Tree: <a href="http://thehazeltree.org/" rel="nofollow">http://thehazeltree.org/</a>
dustineichler超过 16 年前
there's a new book out called, 'expert python programming'... check it out if you're beyond 'Learning python'
jkogut超过 16 年前
Dive into Python here.
lbolognini超过 16 年前
Idiomatic Python: <a href="http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html" rel="nofollow">http://python.net/~goodger/projects/pycon/2007/idiomatic/han...</a><p>Probably the best complement to the aforementioned tutorials. Dive into Python is good but i hate the examples he makes.