摘要: 像网上给出的方法,在osx的bash下输入:$pydoc -p 8001得到:-bash: /usr/bin/pydoc: /Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3: bad interpreter: No such file or directory正确的做法:$python pydoc -p 8001就能启动server,然后http://localhost:8001/ 查看另外,$python -m pydoc print也能查看相关函数的使用方法。对于第三方包来说,在python中:import sy 阅读全文
posted @ 2014-03-09 18:43 tmtfinder 阅读(629) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python3from bs4 import BeautifulSoupimport tornado.httpclientcli=tornado.httpclient.HTTPClient()link='http://www.iciba.com/'search=input('search: ')link+=searchdata=cli.fetch(link)body=data.body.decode('utf8')soup=BeautifulSoup(body)group=soup.find_all(class_=& 阅读全文
posted @ 2014-03-09 16:58 tmtfinder 阅读(175) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python## Copyright (c) 2007-2008, Corey Goldberg (corey@goldb.org)## license: GNU LGPL## This library is free software; you can redistribute it and/or# modify it under the terms of the GNU Lesser General Public# License as published by the Free Software Foundation; either# versi... 阅读全文
posted @ 2014-03-09 14:04 tmtfinder 阅读(473) 评论(0) 推荐(0)
摘要: 1、在线编译http://www.codeskulptor.org/文档:http://www.codeskulptor.org/docs/html2、 学习python的几篇必读文章http://developer.51cto.com/art/201203/321041.htm3、Codeforces上刷题4、sqlitehttp://www.tutorialspoint.com/sqlite/sqlite_python.htm5、深入python3http://sebug.net/paper/books/dive-into-python3/installing-python.html 阅读全文
posted @ 2014-03-09 13:56 tmtfinder 阅读(276) 评论(0) 推荐(0)