diff --git a/.venv.zip b/.venv.zip new file mode 100644 index 0000000..4b65763 Binary files /dev/null and b/.venv.zip differ diff --git a/main.py b/main.py index 97661cc..6cabca8 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,7 @@ # coding=utf-8 # 多线程TCP服务器 import json +import time import pyautogui import socket @@ -61,8 +62,8 @@ def handle_client(client_socket): print(data) if is_black(data): print("黑名单") - client_socket.send(b"ACK!") - client_socket.close() + # client_socket.send(b"ACK!") + # client_socket.close() return Point = data["Point"] x = Point[0]["X"] @@ -70,8 +71,8 @@ def handle_client(client_socket): click_it(x, y) except Exception as e: pass - client_socket.send(b"ACK!") - client_socket.close() + # client_socket.send(b"ACK!") + # client_socket.close() # 等待连接,这里必定进入循环