1.先安装abd指令 初始化设备
    安卓手机通过usb接口进行初始化操作

    1. #通过adb wifi连接
    2. adb tcpip 5555
    3. #init 为设备安装所需要的程序
    4. python -m uiautomator2 init

    2.让电脑和 手机处于同一个网段连接同一个wifi。
    3.代码测试连接手机 进行测试
    uiautomator2 weditor - 图1

    然后下载wEditor
    pip install —pre weditor

    运行weditor
    python -m weditor