公告板
版本库
filestore
活动
搜索
登录
main
/
P011
3d玻璃轮廓度检测
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
1.初始提交
Gavin
2021-02-04
4e5aaefc7162b700b95c750caeff35e6323631d3
[P011.git]
/
P011.2D.algorithm
/
SocketService.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import socket
def OpenService():
s = socket.socket()
host = socket.gethostname()
port = 1234
s.bind((host,port))
s.listen(5)
while(True):
c,addr = s.accept()
print("连接地址:",addr)
c.send("hello world!")
c.close()