客机安装python环境运行下面代码: import socket def main(): # 创建tcp套接字 tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # 连接服务器 # server_ip = input("请输入服务器ip:") # server_port = int(input("请输入服务器port:")) # tcp_socket.connect((server_ip, server_port)) tcp_socket.connect(("