Python
oHHPo
这个作者很懒,什么都没留下…
展开
-
使用Python 启动windows 屏幕保护程序 及在线程中启动
首先安装moudle pywin32-219.win32-py2.7.exe http://pan.baidu.com/s/1qWBHgRE http://docs.activestate.com/activepython/2.5/pywin32/pythoncom__CoInitialize_meth.html翻译 2014-08-21 14:34:05 · 2334 阅读 · 0 评论 -
使用STAF进行自动化安装测试
首先安装STAF原创 2014-08-26 16:57:41 · 1846 阅读 · 0 评论 -
Python 所能处理的整形,长整形,浮点型和复数型的范围
import sys sys.float_info sys.maxsize sys.maxint原创 2014-09-01 19:24:58 · 1430 阅读 · 0 评论 -
Python 写入XML 文件
转载于博客地址: http://blog.csdn.net/liuyuehui110/article/details/7287897 需要将test case转为XML文件方式用于读取。 代码中test_suit.txt 是用来存储原来的case文件的,故做了一点string的处理,用split() 函数抠出自己需要的字段 import xml.dom.mi转载 2015-03-09 20:35:11 · 862 阅读 · 0 评论 -
Python 判断变量类型
信息来自于如下网址 http://segmentfault.com/q/1010000000127305 使用Python判断变量类型时候要使用 isinstance() 函数而非 type() 函数进行判断 比如: a = 111 isinstance(a, int) True isinstance 和 type的区别在于: class A:转载 2015-03-23 13:58:45 · 563 阅读 · 0 评论 -
Python multi thread "error: longjmp causes uninitialized stack frame"
Python 使用pycurl 在多线程下crash的问题问题背景:在工作中需要使用pycurl 在多线程情况下对server发送请求。发现py程序跑一会就回出现程序crash,console报错如下:longjmp causes uninitialized stack frame #0 0x00ad1424 in __kernel_vsyscall () #1 0x008a7d31 in ra原创 2016-04-26 22:14:27 · 1742 阅读 · 0 评论