摘要:
server端 import socket ip = '127.0.0.1' port = 9001 sk = socket.socket(type=socket.SOCK_DGRAM) sk.bind((ip,port)) while True: # msg = sk.recv(1024) msg 阅读全文
摘要:
server端 import socketip = '127.0.0.1'port = 9001sk = socket.socket(type=socket.SOCK_DGRAM)sk.bind((ip,port))# msg = sk.recv(1024)msg,addr = sk.recvfro 阅读全文