Pythonpython3的第一个socket程序

1328人围观 0个不明物体

python3的第一个socket程序 服务端程序 importsocket classMySocketService(): def__init__(self): globals,host,port s=socket.socket()#获取socket对象 host=socket.gethostname()#获得本地主机名 port=8003#设置端口 print(h