|
Size: 530
Comment:
|
← Revision 3 as of 2009-12-25 07:08:41 ⇥
Size: 530
Comment: converted to 1.6 markup
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 8: | Line 8: |
| -- feynman [[[DateTime(2004-08-11T00:45:13Z)]]] [[TableOfContents]] |
-- feynman [<<DateTime(2004-08-11T00:45:13Z)>>] <<TableOfContents>> |
文章来自《Python cookbook》. 翻译仅仅是为了个人学习,其它商业版权纠纷与此无关!
-- feynman [2004-08-11 00:45:13]
Contents
描述
...
问题 Problem
你想要从web的一个url抓取html文件
解决 Solution
urllib.urlopen 返回 a file-like object,你能调用read()
