socket实现python聊天功能和文件传输
importsocketimporttimeimporttkinterastkimportthreadingdata=''sock1=socket.socket(socket.AF_INET,socket.SOCK_STREAM)host='127.0.0.1'port=1234sock1.bind((host,port))sock1.listen(128)print("服务器等待连接中........")suo=threading.Condition()