3025613752@qq.com 67e8e18237 初步
2024-01-29 09:12:31 +08:00

11 lines
220 B
Python

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