![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 51
半只烂鱼
这个作者很懒,什么都没留下…
展开
-
Airtest详细连接步骤(包含Android和IOS)
Android连接:安卓的连接比较简单,主要是连上ADB,详情请见ADB1. 通过usb将手机与电脑相连2. 在airtest右侧设备窗可以看见“移动设备连接”,点击“connect”*如果此时没有就先点击1.“刷新ADB”点击之后如果看到设备屏幕,像下图这样,就是连接成功了IOS连接:1.下载Xcode,注意与要连接的ios设备之间的版本对应!!IOSXcode>=1311.x10.x-12.x10.x>=9.3>=9.32原创 2021-10-18 17:51:50 · 9168 阅读 · 4 评论 -
python replace()函数不会改变原string
获取一个string,结果末尾有一个换行符,我本来include_string = self.include_data_Text_one.get(0.0, END)include_string.replace('\n', "")结果输出末尾还是有换行符T-T后来在某个隐秘的角落看见:replace()函数不会改变原string于是我把代码改成include_string = self.include_data_Text_one.get(0.0, END)include_string = i原创 2021-09-01 16:23:05 · 283 阅读 · 0 评论 -
关于ERROR: Cannot uninstall ‘xxx‘. It is a distutils installed project的错误,处理方法
在mac环境下,使用pip安装mitmproxy,报错了ERROR: Cannot uninstall ‘ruamel-yaml’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.查阅了一下大概是pip版本错误的原因解决方法:手动删除文件site-packag原创 2021-07-20 14:01:46 · 2905 阅读 · 0 评论 -
MAC 安装opencv的过程
代码里cv2标红了,发现需要安装opencv,于是开始了。。。。一开始查到说安装cv2模块,不能直接用命令pip install cv2安装,要用命令如下:pip install opencv-python使用命令后报错如下:ERROR: Exception:Traceback (most recent call last):File “/Users/xxx/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/resolvelib/r原创 2021-04-03 18:23:48 · 1477 阅读 · 3 评论