服务器端: # Echo server program from socket import * from time import ctime HOST = '' # Symbolic name meaning all available interfaces PORT = 50007 # Arbitrary non-privileged port BUFSIZE = 1024 ADDR = (HOST, PORT) tcpSerSock = socket(AF_INET, SOCK_STREA…