
Python
oHHPo
这个作者很懒,什么都没留下…
展开
-
使用Python 启动windows 屏幕保护程序 及在线程中启动
首先安装moudle pywin32-219.win32-py2.7.exe http://pan.baidu.com/s/1qWBHgREhttp://docs.activestate.com/activepython/2.5/pywin32/pythoncom__CoInitialize_meth.html翻译 2014-08-21 14:34:05 · 2419 阅读 · 0 评论 -
使用STAF进行自动化安装测试
首先安装STAF原创 2014-08-26 16:57:41 · 1899 阅读 · 0 评论 -
Python 所能处理的整形,长整形,浮点型和复数型的范围
import syssys.float_infosys.maxsizesys.maxint原创 2014-09-01 19:24:58 · 1456 阅读 · 0 评论 -
Python 写入XML 文件
转载于博客地址:http://blog.youkuaiyun.com/liuyuehui110/article/details/7287897需要将test case转为XML文件方式用于读取。代码中test_suit.txt 是用来存储原来的case文件的,故做了一点string的处理,用split() 函数抠出自己需要的字段import xml.dom.mi转载 2015-03-09 20:35:11 · 889 阅读 · 0 评论 -
Python 判断变量类型
信息来自于如下网址http://segmentfault.com/q/1010000000127305使用Python判断变量类型时候要使用 isinstance() 函数而非 type() 函数进行判断比如:a = 111isinstance(a, int)Trueisinstance 和 type的区别在于:class A:转载 2015-03-23 13:58:45 · 593 阅读 · 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 · 1812 阅读 · 0 评论