使用环境:python 3.9,windows
1.需要安装库:pip install --upgrade --pre uiautomator2
2.手机usb连接电脑:python -m uiautomator2 init
3.安装图像识别的包:pip3 install -U "uiautomator2[image]" -i https://pypi.doubanio.com/simple
4.运行程序:python 3.py
下载地址: https://pan.baidu.com/s/1eb5BcSB-Ycca_m-qm-97Bw?pwd=csd6 提取码: csd6