# 加入线程中跑,加入函数为socket_target,参数为conn,nickname threading.Thread(target=socket_target, args=(conn,nickname,)).start() 客户端: from tkinter import * from datetime import * from socket import * import threading import tkinter import tkinter.messagebox from tkinter.scrolledtext import Scro...
# 加入线程中跑,加入函数为socket_target,参数为conn,nickname threading.Thread(target=socket_target, args=(conn,nickname,)).start() 客户端: from tkinter import * from datetime import * from socket import * import threading import tkinter import tkinter.messagebox from tkinter.scrolledtext import Scro...