From 67e8e182377d0cbae4eb509d4b4356150ba8b73f Mon Sep 17 00:00:00 2001 From: "3025613752@qq.com" <gfdgd-xi> Date: Mon, 29 Jan 2024 09:12:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VM/mainwindow.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 VM/mainwindow.py diff --git a/VM/mainwindow.py b/VM/mainwindow.py new file mode 100644 index 0000000..a73c421 --- /dev/null +++ b/VM/mainwindow.py @@ -0,0 +1,11 @@ +import socket +s = socket.socket() +host = socket.gethostname() +port = 8020 +s.bind((host, port)) +s.listen(5) +while True: + client, addr = s.accept() + print(addr) + client.send("A".encode("utf-8")) + client.close() \ No newline at end of file