摘要: 1.多进程实现并发的socket # server.py​import socketfrom multiprocessing import Processdef chat(conn): while True: try: ret = conn.recv(1024).decode('utf-8') co 阅读全文
posted @ 2020-06-02 23:25 投降输一半! 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1.确认多个子进程执行完毕 import demofrom multiprocessing import Process​def target(i): print(i)​if __name__ == '__main__': p_l = [] for i in range(5): p = Proces 阅读全文
posted @ 2020-06-02 00:55 投降输一半! 阅读(1184) 评论(0) 推荐(0) 编辑