摘要:
服务器端 客户端 阅读全文
摘要:
1 import socket 2 3 4 def main(): 5 # 1.常见套接字对象 6 tcp_server_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM) 7 8 # 连接服务器 9 server_ip = input("请输入服务器ip:") 10 ... 阅读全文
摘要:
1 import socket 2 3 4 def main(): 5 # 创建套接字对象 6 tcp_server_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM) 7 8 # 绑定端口 9 tcp_server_socket.bind(("192.168.199.88",... 阅读全文