Chinaunix首页 | 论坛 | 博客
  • 博客访问: 312108
  • 博文数量: 214
  • 博客积分: 4258
  • 博客等级: 上校
  • 技术积分: 2021
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-02 09:16
个人简介

http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net

文章分类

全部博文(214)

文章存档

2018年(16)

2015年(1)

2014年(2)

2012年(22)

2011年(173)

发布时间: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..........【阅读全文】

阅读(316) | 评论(0) | 转发(0)

发布时间:2011-10-09 21:28:36

from nt import *                     #python2.5版本  xp操作系统import ntpath as pathdef makedirs(name, mode=0777):    """makedirs(path [, mode=0777])    Sup.........【阅读全文】

阅读(328) | 评论(0) | 转发(0)

发布时间: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 .........【阅读全文】

阅读(469) | 评论(0) | 转发(0)

发布时间: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().........【阅读全文】

阅读(273) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(731) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册