每次我写别的东西时,它都会显示出除了新内容之外我已经写的第一句话
def accept_client():
while True:
cli_sock, cli_add = ser_sock.accept()
uname = cli_sock.recv(1024)
name,message=uname.split(">")
CONNECTION_LIST.append((uname, cli_sock))
print('%s is now connected' %name)
thread_client = threading.Thread(target = broadcast_usr, args=[uname, cli_sock])
thread_client.start()
#this is my code from the server of the chat...
目前没有回答
相关问题 更多 >
编程相关推荐