1.先安装abd指令 初始化设备 安卓手机通过usb接口进行初始化操作 #通过adb wifi连接 adb tcpip 5555#init 为设备安装所需要的程序python -m uiautomator2 init 2.让电脑和 手机处于同一个网段连接同一个wifi。 3.代码测试连接手机 进行测试 然后下载wEditor pip install —pre weditor 运行weditor python -m weditor