import asyncio
import websockets
async def hello():
uri = "ws://127.0.0.1:7912/minicap"
async with websockets.connect(uri) as websocket:
for i in range(10):
greeting = await websocket.recv()
print(f"< {greeting}")
asyncio.get_event_loop().run_until_complete(hello())
pip show uiautomator2
):2.7.3我想使用minicap的功能,于是写了如下代码:
结果如图所示。
请问这个问题如何解决?