socket实现python聊天功能和文件传输 importsocketimporttimeimporttkinterastkimportthreadingdata=''sock1=socket.socket(socket.AF_INET,socket.SOCK_STREAM)host='127.0.0.1'port=1234sock1.bind