Fork me on GitHub
  2020年1月2日
摘要: # from socket import * # client=socket(AF_INET,SOCK_STREAM) # client.connect(('127.2.2.2',6689)) # client.send('hello'.encode('utf-8')) # client.send( 阅读全文
posted @ 2020-01-02 20:24 OBOS 阅读(167) 评论(0) 推荐(0) 编辑
摘要: # from socket import * # server=socket(AF_INET,SOCK_STREAM) # server.bind(('127.2.2.2',6689)) # server.listen(5) # conn,addr=server.accept() # res1=co 阅读全文
posted @ 2020-01-02 20:22 OBOS 阅读(188) 评论(0) 推荐(0) 编辑
摘要: from socket import * client=socket(AF_INET,SOCK_STREAM) client.connect(('127.2.2.2',6688)) while True: cmd=input('>>:').strip() if not cmd:continue cl 阅读全文
posted @ 2020-01-02 18:48 OBOS 阅读(150) 评论(0) 推荐(0) 编辑
摘要: from socket import * import subprocess server=socket(AF_INET,SOCK_STREAM) server.bind(('127.2.2.2',6688)) server.listen(5) while True: conn,client_add 阅读全文
posted @ 2020-01-02 18:47 OBOS 阅读(223) 评论(0) 推荐(0) 编辑