摘要: import osdef characters_sort(path): with open(path,mode="r",encoding='utf-8')as f: li=[] for i in f: li.append(i.strip()) l=''.join(li) s=[] for i in 阅读全文
posted @ 2020-08-22 10:16 diracy 阅读(143) 评论(0) 推荐(0)
摘要: server端 import socketsk=socket.socket(type=socket.SOCK_DGRAM)sk.bind(('127.0.0.1',9001))msg,addr=sk.recvfrom(1024)print(msg)sk.sendto(b'hello',addr) c 阅读全文
posted @ 2020-08-22 09:23 diracy 阅读(98) 评论(0) 推荐(0)