随笔分类 - Python
摘要:使用SGMLParser和urllib模块抓取页面数据
阅读全文
摘要:单线程.慢慢补充扩展 你要做的就是将文件路径加入到listfile列表中,哦还有,文件下载路径,这里为d:/tmp Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->#coding:utf-8 import httplib import th...
阅读全文
摘要:1,cmp函数比较两个对象,如果小于返回负整数,大于的话返回正整数,相等返回0. Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->>>> a,b = 1,-1 >>> cmp(a,b) 1 >>> cmp(b,a) -1 >>> a=-1...
阅读全文
摘要:1.当我们要在终端打印字符串时我们会用print Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->>>> x = 10 >>> x 10 >>> print x 10 >>> x='10' >>> x '10' >>> print x 1...
阅读全文
摘要:python的异常和文件处理
阅读全文
摘要:getattr()函数是Python自省的核心函数
阅读全文
摘要:getattr方法获取对象的引用及getattr 作为一个分发者
阅读全文
摘要:Python函数及其自省的能力,介绍几个python的内部函数(type,str)
lambda函数
阅读全文
摘要:python 的数据类型,包括字典类型,List,Tuple
阅读全文
摘要:python 的安装及使用入门
阅读全文

浙公网安备 33010602011771号