摘要: from socket import * client=socket(AF_INET,SOCK_DGRAM) client.sendto(b'hello',('127.0.0.1',8081)) client.sendto(b'world',('127.0.0.1',8081)) client.se 阅读全文
posted @ 2019-07-28 07:06 zhouhao666 阅读(305) 评论(0) 推荐(0) 编辑
摘要: import socket client=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) while True: msg=input('>>: ').strip() client.sendto(msg.encode('utf-8'),('127.0.0 阅读全文
posted @ 2019-07-28 07:02 zhouhao666 阅读(156) 评论(0) 推荐(0) 编辑