Python-sokect 示例
摘要:
server: #coding=utf-8 import socket _sokect =socket.socket() #创建sokect _host =socket.gethostname() #获取本地主机名 _port =8090 #设置端口 _sokect.bind((_host,_port)) _sokect.listen(5) #等待客户端连接 while True: client, 阅读全文
posted @ 2019-11-29 14:55 迎着风追赶 阅读(175) 评论(0) 推荐(0)
浙公网安备 33010602011771号