摘要: 一,socket 模块套接字包括两类:服务器,客户机,创建一个套接字后让它等待连接服务器:import sockets = socket.socket()port = 1234host = socket.gethostname()print hosts.bind((host,port))s.list... 阅读全文
posted @ 2014-05-01 21:22 剑不飞 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-05-01 19:11 剑不飞 阅读(151) 评论(0) 推荐(0) 编辑