摘要:
1.多进程实现并发的socket # server.pyimport socketfrom multiprocessing import Processdef chat(conn): while True: try: ret = conn.recv(1024).decode('utf-8') co 阅读全文
摘要:
1.确认多个子进程执行完毕 import demofrom multiprocessing import Processdef target(i): print(i)if __name__ == '__main__': p_l = [] for i in range(5): p = Proces 阅读全文