摘要: 1 import platform 2 3 profile = [ 4 platform.architecture(), 5 platform.dist(), 6 platform.libc_ver(), 7 platform.mac_ver(), 8 p... 阅读全文
posted @ 2015-05-24 10:12 DraugSolo 阅读(173) 评论(0) 推荐(0) 编辑
摘要: pythonxy 集成了常用的模块文件。在百度网盘上下了个2.7.6,试用中。。// 明天继续补 阅读全文
posted @ 2015-05-23 20:14 DraugSolo 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 转http://blog.csdn.net/imzoer/article/details/8678029subprocess的目的就是启动一个新的进程并且与之通信。subprocess模块中只定义了一个类: Popen。可以使用Popen来创建进程,并与进程进行复杂的交互。它的构造函数如下:subp... 阅读全文
posted @ 2015-05-19 22:19 DraugSolo 阅读(265) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/hongten/p/hongten_python_more_modules.htmladodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheetahcherrypy:一个WEB... 阅读全文
posted @ 2015-05-17 19:53 DraugSolo 阅读(220) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/gannan/archive/2013/01/08/2851825.html今天整理自己的博客,发现已经快一年没有更新了,汗。今天给大家介绍的是pywinauto,它是用python语言编写的开源测试工具,专用于测试win32应用,其官网网址是:http... 阅读全文
posted @ 2015-05-17 19:49 DraugSolo 阅读(457) 评论(0) 推荐(0) 编辑
摘要: pywinauto win 自动化测试框架 1 # -*- coding: gb2312 -*- 2 __author__ = 'Zechary' 3 4 import time 5 from pywinauto import application 6 app = application.App... 阅读全文
posted @ 2015-05-16 20:32 DraugSolo 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 1 __author__ = 'Zechary' 2 3 import os, os.path 4 import zipfile 5 6 def zip_dir(dirname, zipname): 7 filelist = [] 8 if os.path.isfile(dir... 阅读全文
posted @ 2015-05-16 10:16 DraugSolo 阅读(172) 评论(0) 推荐(0) 编辑
摘要: rfc822模块包括了一个邮件和新闻组的解析器 (也可用于其它符合 RFC 822 标准的消息, 比如 HTTP 头).通常, RFC 822 格式的消息包含一些标头字段, 后面至少有一个空行, 然后是信息主体.邮件数据内容:1 Message-Id: 2 Date: Tue, 14 Nov 200... 阅读全文
posted @ 2015-05-15 20:28 DraugSolo 阅读(459) 评论(0) 推荐(0) 编辑
摘要: xmlib模块提供了一个简单的 XML 语法分析器。 1 __author__ = 'Zechary' 2 3 import xmllib 4 class Parse(xmllib.XMLParser): 5 def __init__(self, file=None): 6 ... 阅读全文
posted @ 2015-05-15 20:19 DraugSolo 阅读(191) 评论(0) 推荐(0) 编辑
摘要: uu编码体系用于将任意二进制数据转换为普通文本格式.1 __author__ = 'Zechary'2 import uu3 import os, sys4 infile = 'D:/Python/fish.jpg'5 uu.encode(infile, sys.stdout, os.path.ba... 阅读全文
posted @ 2015-05-14 07:10 DraugSolo 阅读(239) 评论(0) 推荐(0) 编辑