最近在学 airtest,遇到了一个问题,如下图,我用这种方式运行之后是没有报错的,
但是,我用另外一种方式运行之后有报错,
Exception ignored in:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\hrpc\object_proxy.py", line 114, in del
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\hrpc\client.py", line 63, in evaluate
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\hrpc\transport\http.py", line 26, in send
hrpc.exceptions.TransportDisconnected: HTTPConnectionPool(host='127.0.0.1', port=13446): Max retries exceeded with url: / (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))
这两种方式都能执行完,但是就是后面那种会报错,大佬们能解答一下吗?