test/test.py
@@ -9,7 +9,10 @@ __queue = queue.Queue() def start_thread(): print(threading.current_thread().getName(), threading.current_thread().ident) if __name__ == "__main__": while True: data = __queue.get() print("数据:", data) threading.Thread(target=start_thread).start()