http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net
发布时间:2011-10-09 17:32:55
# Wrapper module for _socket, providing some additional facilities# implemented in Python."""\This module provides socket operations and some related functions.On Unix, it supports IP (Internet Protocol) and Unix domain sockets.On other systems, it only supports IP. Functions specific for .........【阅读全文】
发布时间:2011-10-09 13:21:38
_s=("def %s(*args): print args \n\n")methods=('fun1','fun2','fun3') for m in methods: exec _s % (m) def main(): fun1('hello') fun2('world') fun3('liyuan')if __name__=='__main__': main().........【阅读全文】
发布时间:2011-10-09 10:41:10
import _socketfrom _socket import *def getfqdn(name=''): """Get fully qualified domain name from name. An empty argument is interpreted as meaning the local host. First the hostname returned by gethostbyaddr() is checked, then.........【阅读全文】
发布时间:2011-10-07 15:15:01
创建PyStringObject对象 Python提供了两条路径,从C中原生的字符串创建PyStringObject对象。我们先考虑一下最一般的PyString_FromString。字符串就会对象的intern机制 字符缓冲池 PyStringObject效率相关的问题 Python.........【阅读全文】