话不多说,先看代码: 客户端: import socket def main(): #creat: download_client=socket.socket(socket.AF_INET,socket.SOCK_STREAM) #link: serv_ip=input(please input server IP) serv_port=int(input((please input server port))) serv_addr=(serv_ip,serv_port) download_client.connect(serv_addr) #sen