This commit is contained in:
3025613752@qq.com 2024-01-29 09:12:31 +08:00
parent 58f2d5229a
commit 67e8e18237

11
VM/mainwindow.py Normal file

@ -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()