利用线程和进程实现tcp 服务端 from multiprocessing import Process from threading import Thread import socket def school(conn): while True: res = conn.recv(1024) if len(res) == 0:break res = res.decode('utf-8') msg = f'{res}已被我校录取' print(msg) conn.send(msg.encode(…