http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net
发布时间:2011-10-09 22:07:05
from nt import *import ntpath as path def removedirs(name): #删除目录直到目录非空,与平常所说的删除目录有点不一样 """removedirs(path) Super-rmdir; remove a leaf directory and all empty intermediate ones..........【阅读全文】
发布时间: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.........【阅读全文】