摘要: import pymysql# python3用的是pymysql,python2用的是MySQLdbclass OperationMysql: def __init__(self): self.conn = pymysql.connect( host='11111', port=3306, use 阅读全文
posted @ 2021-04-11 14:34 千年妖狐 阅读(60) 评论(0) 推荐(0) 编辑
摘要: SQL语句性能优化 1, 对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2,应尽量避免在 where 子句中对字段进行 null 值判断,创建表时NULL是默认值,但大多数时候应该使用NOT NULL,或者使用一个特殊的值,如0,-1作为默 阅读全文
posted @ 2021-02-18 18:47 千年妖狐 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 下载地址:https://www.charlesproxy.com/latest-release/download.do 破解地址:https://www.zzzmode.com/mytools/charles/ 生成jar包 替换 重启两遍 证书安装:charles安装完成后,就可以抓取电脑上ht 阅读全文
posted @ 2020-10-21 21:01 千年妖狐 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 1、安装: pip install --pre uiautomator2#或者你可以直接从github上源码安装git clone https://github.com/openatx/uiautomator2pip install -e uiautomator2pip install pillow 阅读全文
posted @ 2020-07-05 20:23 千年妖狐 阅读(1902) 评论(0) 推荐(0) 编辑
摘要: 普遍的apk性能测试,主要是以下七类 1、响应2、内存3、cpu4、FPS (app使用的流畅度)5、GPU过度渲染6、耗电7、耗流(app除了这些性能测试,还有:手机版本号兼容性,屏幕分辨率兼容性,稳定性测试,安全测试等,后续会持续更新… 流量测试同这些一起更新,这里就不在说明了 ) 一、响应软件 阅读全文
posted @ 2020-04-28 09:22 千年妖狐 阅读(460) 评论(0) 推荐(0) 编辑
摘要: <html> <head> <title>usually function</title> </head> <script> function load(){ //下面两种方法效果是一样的 document.getElementById("target").onclick(); document.g 阅读全文
posted @ 2020-04-14 17:03 千年妖狐 阅读(10962) 评论(0) 推荐(0) 编辑
摘要: import requests, os, xlrd, json, xlwings as xwclass readXls(): def read(self, name, sheetname): try: self.path = os.path.abspath(os.path.join(os.path. 阅读全文
posted @ 2020-03-30 11:14 千年妖狐 阅读(217) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8import requests, json, yagmail, os, timefrom config.config import *def Send_Email(content): day = time.strftime("%Y-%m-%d %H:%M*", time. 阅读全文
posted @ 2020-03-30 11:11 千年妖狐 阅读(193) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8class getvales(): def getdict(dict1, values): global values1,va #定义全局变量 values1 = values for k, v in dict1.items(): #把字典的key和values变成数组 阅读全文
posted @ 2020-03-30 11:08 千年妖狐 阅读(211) 评论(0) 推荐(0) 编辑
摘要: from faker import Faker# fake=Faker() #默认生成美国英文数据fake = Faker(locale='zh_CN')# fake = Faker(locale='si_LK')# 地址类print("地址类".center(20, "-"))print(fake 阅读全文
posted @ 2020-03-30 11:06 千年妖狐 阅读(440) 评论(0) 推荐(1) 编辑