摘要:
一,socket 模块套接字包括两类:服务器,客户机,创建一个套接字后让它等待连接服务器:import sockets = socket.socket()port = 1234host = socket.gethostname()print hosts.bind((host,port))s.list... 阅读全文
摘要:
1.callable(函数) 能不能被调用2.记录函数def fibs(num): 'This is just doc for document!' fb = [0,1] for i in range(num-2): fb.append(fb[-1]+fb[-2]) return fb... 阅读全文