摘要:
server端 import socket sk = socket.socket() address = ('127.0.0.1',8000) sk.bind(address) sk.listen(3) #这里的3是指允许等待连接的数量 print('waitting......') conn,ad 阅读全文
摘要:
getattr、hasattr、setattr、delattr class Foo: def __init__(self,name,age): self.n = name self.a = age def show(self): return '%s_%s' %(self.n,self.a) obj 阅读全文