随笔分类 -  Python

摘要:以及apache配置 阅读全文
posted @ 2009-09-19 10:45 ________囧丶殇 阅读(435) 评论(0) 推荐(0)
摘要:使用SGMLParser和urllib模块抓取页面数据 阅读全文
posted @ 2009-04-30 10:23 ________囧丶殇 阅读(1584) 评论(0) 推荐(0)
摘要:单线程.慢慢补充扩展 你要做的就是将文件路径加入到listfile列表中,哦还有,文件下载路径,这里为d:/tmp Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->#coding:utf-8 import httplib import th... 阅读全文
posted @ 2009-04-29 16:31 ________囧丶殇 阅读(348) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2009-04-28 11:28 ________囧丶殇 阅读(260) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2009-04-27 16:30 ________囧丶殇 阅读(380) 评论(0) 推荐(0)
摘要:python的异常和文件处理 阅读全文
posted @ 2009-04-27 15:19 ________囧丶殇 阅读(357) 评论(0) 推荐(0)
摘要:python 类的继承 阅读全文
posted @ 2009-04-27 14:25 ________囧丶殇 阅读(170) 评论(0) 推荐(0)
摘要:python类的使用 阅读全文
posted @ 2009-04-27 13:26 ________囧丶殇 阅读(177) 评论(0) 推荐(0)
摘要:and和or使用技巧 阅读全文
posted @ 2009-04-27 11:50 ________囧丶殇 阅读(144) 评论(0) 推荐(0)
摘要:getattr()函数是Python自省的核心函数 阅读全文
posted @ 2009-04-27 11:29 ________囧丶殇 阅读(168) 评论(0) 推荐(0)
摘要:getattr方法获取对象的引用及getattr 作为一个分发者 阅读全文
posted @ 2009-04-15 18:02 ________囧丶殇 阅读(215) 评论(0) 推荐(0)
摘要:Python函数及其自省的能力,介绍几个python的内部函数(type,str) lambda函数 阅读全文
posted @ 2009-04-15 17:24 ________囧丶殇 阅读(351) 评论(0) 推荐(0)
摘要:变更赋值,字符串格式化 阅读全文
posted @ 2009-04-15 14:34 ________囧丶殇 阅读(175) 评论(0) 推荐(0)
摘要:python 的数据类型,包括字典类型,List,Tuple 阅读全文
posted @ 2009-04-15 11:27 ________囧丶殇 阅读(241) 评论(0) 推荐(0)
摘要:python 的安装及使用入门 阅读全文
posted @ 2009-04-15 10:55 ________囧丶殇 阅读(159) 评论(0) 推荐(0)