摘要: anaconda环境,可以搭建公用的python使用环境 https://www.anaconda.com/distribution/ 阅读全文
posted @ 2019-04-19 16:00 压力山大80 阅读(81) 评论(0) 推荐(0) 编辑
摘要: set jmxPath=G:\auto_test set now=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2% set report=%jmxPath%\ftploadtest\%now% mkdir %report% set csv=%jmxPath%\ftploadtest\%now%.csv call ... 阅读全文
posted @ 2019-03-15 13:24 压力山大80 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 安装步骤: github下载pywinauto-0.6.6,解压目录下:python setup.py install 安装依赖包:pip install pywin32 有点慢 注意:使用的时候如果操作的应用程序是32位的,需要下载python32位版本。64位的使用python64位版本。 阅读全文
posted @ 2019-03-13 20:58 压力山大80 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1、安装pyinstaller 2、使用pyinstaller生成spec打包配置文件,程序文件名称,getprocess.py 3、会自动在当前目录生成getprocess.spec文件 4、使用spec文件打包文件 5、-F 参数将程序打包成1个独立exe文件,打包后的文件在当前目录的dict目 阅读全文
posted @ 2019-03-04 17:25 压力山大80 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 一个普通的 nginx 配置如下: location / { include uwsgi_params; uwsgi_pass 127.0.0.1:3031; #与uwsgi通讯的地址 } uwsgi配置: [uwsgi] socket = 127.0.0.1:3031 #与nginx通讯地址和端口 阅读全文
posted @ 2019-03-01 15:38 压力山大80 阅读(119) 评论(0) 推荐(0) 编辑
摘要: unit单元测试框架使用方法一: unit单元测试框架使用方法二,调用目录下测试脚本内的测试用例: 调用脚本: 阅读全文
posted @ 2019-02-28 13:32 压力山大80 阅读(684) 评论(0) 推荐(0) 编辑
摘要: from xml.etree import ElementTree data = ''' 1 2008 141100 ''' # 遍历xml结构内容 tree = ElementTree.fromstring(d... 阅读全文
posted @ 2019-01-31 13:06 压力山大80 阅读(1693) 评论(0) 推荐(0) 编辑
摘要: #/usr/bin/env python3.7 #coding=utf8 import requests import hashlib import random appid = '' #你的appid secretKey = '' #你的密钥 httpClient = None myurl = 'http://api.fanyi.baidu.com/api/trans/vip/tr... 阅读全文
posted @ 2018-11-14 16:35 压力山大80 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 1、需要先安装 yum -y install wpa_supplicant 2、配置wpa_supplicant接口和驱动,执行:vi /etc/sysconfig/wpa_supplicant,按a进入插入模式,编辑如下: |# Use the flag "-i" before each of y 阅读全文
posted @ 2017-09-02 10:43 压力山大80 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 安装pip 上面的pip安装只能支持python2.7 通过这个https://www.softwarecollections.org/en/docs/地址安装可以支持python3.5。 阅读全文
posted @ 2017-09-01 09:47 压力山大80 阅读(151) 评论(0) 推荐(0) 编辑