- 博客(22)
- 收藏
- 关注
原创 查看app包名
查看app包名打开cmd输入命令:adb shell am monitor然后启动需要获取包名的应用即可查看自己安装的app包名adb shell pm list packages -3
2022-02-23 23:42:20
911
原创 airtest/python常见报错
expected an indented blockPython中没有分号,用严格的缩进来表示上下级从属关系。导致excepted an indented block这个错误的原因一般有两个:1.冒号后面是要写上一定的内容的(新手容易遗忘这一点)2. 缩进不严格,导致少了或者多了一个空格‘method’ object is not subscriptable意思是方法不可以被使用下标通俗一些,就是本来要使用 () 结果使用了 []unexpected indent1.函数或哪一行的缩进出了问
2022-02-21 17:12:50
2901
原创 Python中time相关函数
Python中time相关函数`time.time()``time.localtime(sec)`time.time()返回时当前时间的时间戳浮点数time.localtime(sec)格式化时间戳为本地的时间eg:localtime = time.localtime(time.time())#获取当前时间备注:后续更新...
2022-02-10 11:56:29
432
原创 List of devices attached解决方案
用adb命令获取设备序列号时,出现“List of devices attached”,未出现序列号原因:没打开usb调试解决方法:进入开发者选项,打开usb调试即可
2022-01-04 20:42:02
5324
2
原创 java数组遍历--输出多维数组的某一行
遍历数组–Arraysimport java.util.Arrays遍历一维数组Arrays.toString()import java.util.Arrays;public class Hello { public static void main(String []args) { int a[]={1,2,3}; System.out.println(Arrays.toString(a)); }}遍历多维数组(以二维数组为例)Arrays.de
2021-12-30 17:12:33
1411
原创 Edge兼容性问题,无法使用,一个不兼容的软件尝试与Edge一起加载
Microsoft Edge出现兼容性问题,无法使用解决方法:打开注册表–进入\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft–新建项:Edge–在Edge项下面新建DWORD(32位):名称为RendererCodeIntegrityEnabled,值为0。最后显示:...
2021-12-08 08:22:34
16949
3
原创 airtest安装Tesseract-OCR后,touch点击事件失效
点击事件失效,先检查对应python下的airtest包的版本pip listairtest的版本不宜过高,一般安装的是最新的包1.2.3版本的,此包不适宜,会导致touch事件失效可降低airtest包的版本pip install airtest=1.1.10...
2021-12-06 23:22:07
1154
原创 airtest安装Tesseract-OCR后识别中文乱码问题 (python2.x版本)
airtest安装Tesseract-OCRhttps://blog.youkuaiyun.com/myinghua/article/details/121743744?spm=1001.2014.3001.5501.识别中文乱码在文件头添加几行代码import sysreload(sys)sys.setdefaultencoding( "utf-8" )打印时print text1.decode('utf-8').encode('GBK')具体代码示例import sysreload(sys
2021-12-06 14:44:02
2184
原创 airtest识别中文,安装Tesseract-OCR
安装Tesseract-OCR网上搜素Tesseract,找到Tesseract-OCR的下载链接下载到本地下载完成后双击进入安装勾选Additional language data(download)点击next,完成安装添加中文识别包:chi_sim 这个文件。下载地址:https://github.com/tesseract-ocr/tessdata如果你有不明白的可以去官方GitHub看看:https://github.com/tesseract-ocr/tesseract下载
2021-12-06 14:27:02
11880
原创 pip安装、检查、升级、卸载第三方包
pip安装pippip安装包pip安装指定版本的包(可用于安装降级包)pip升级包pip卸载包pip查看已安装的包pip检查可更新的包安装pip方法一:安装python后,在cmd中执行python setup.py install方法二:直接安装 python get-pip.py -i https://pypi.tuna.tsinghua.edu.cn/simplepip安装包pip install <包名>pip安装指定版本的包(可用于安装降级包)pip install &
2021-12-06 11:40:51
1039
原创 病毒检测数据结构BF算法
#include<iostream>#include<fstream>#include<stdlib.h>using namespace std;#define MAXLEN 100typedef struct{ char ch[MAXLEN+1]; int length;}SString;int Slength(SString...
2019-01-24 14:24:04
8161
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人