会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
similarface
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
12
13
14
15
16
17
下一页
2016年1月21日
python 操作FTP
摘要: 使用类封装了FTP的操作
阅读全文
posted @ 2016-01-21 16:57 similarface
阅读(1472)
评论(0)
推荐(0)
2016年1月16日
python etree解析xml
摘要: # -*- coding:utf-8 -*-#conding:utf-8__author__ = 'hdfs''''简洁 高效 明了ElementTree轻量级的 Python 式的 API ,它由一个 C 实现来提供。相对于 DOM 来说,ET 快了很多(见注释3)而且有很多令人愉悦的 API 可...
阅读全文
posted @ 2016-01-16 11:36 similarface
阅读(8046)
评论(0)
推荐(0)
python DOM解析XML
摘要: #conding:utf-8# -*- coding:utf-8 -*-__author__ = 'hdfs'"""XML 解析 :DOM解析珍整个文档作为一个可遍历的对象 提交给应用程序,dom解析会将文档全部load进内存,这样对于大型的xml可能性能不多好。"""import pprintim...
阅读全文
posted @ 2016-01-16 11:23 similarface
阅读(1103)
评论(0)
推荐(0)
python sax解析xml
摘要: #books.xml Python & XML Python & HTML December 2001 Jones, Drake Programming Python, 4th Editio...
阅读全文
posted @ 2016-01-16 11:08 similarface
阅读(2163)
评论(0)
推荐(0)
2016年1月15日
Sphinx之配置文件
摘要: ## Sphinx configuration file sample## WARNING! While this sample file mentions all available options,# it contains (very) short helper descriptions on...
阅读全文
posted @ 2016-01-15 16:55 similarface
阅读(451)
评论(0)
推荐(0)
Sphinx初探之安装
摘要: 在Centos or redhat 安装Sphinx1.首先安装依赖包$ yum install postgresql-libs unixODBC2.安装软件$ rpm -Uhv sphinx-2.2.1-1.rhel6.x86_64.rpm3.启动服务$ service searchd start...
阅读全文
posted @ 2016-01-15 15:54 similarface
阅读(604)
评论(0)
推荐(0)
python 正则表达式
摘要: #conding:utf-8__author__ = 'similarface'import sys#子字符串选择print('HK usa china'[5:10]) #a chi#字符串可以+print('similar'+'face') ...
阅读全文
posted @ 2016-01-15 11:08 similarface
阅读(450)
评论(0)
推荐(0)
2016年1月14日
python 排列组合
摘要: #coding:utf-8__author__ = 'similarface''''序列的排列组合'''def permute(list): ''' 序列的排列数: abc=abc,acb,bac,aca,cab,cba :param list: :return: ''...
阅读全文
posted @ 2016-01-14 09:52 similarface
阅读(2454)
评论(0)
推荐(0)
2016年1月13日
python 二叉树
摘要: #coding:utf-8__author__ = 'similarface'class BinaryTree: def __init__(self): self.tree=EmptyNode() def __repr__(self): return repr...
阅读全文
posted @ 2016-01-13 22:50 similarface
阅读(275)
评论(0)
推荐(0)
python 键值对的树实现
摘要: #coding:utf-8__author__ = 'similarface'class KeyedBinaryTree: def __init__(self):self.tree=EmptyNode() def __repr__(self):return repr(self.tree)...
阅读全文
posted @ 2016-01-13 22:49 similarface
阅读(513)
评论(0)
推荐(0)
上一页
1
···
12
13
14
15
16
17
下一页
公告