Chinaunix首页 | 论坛 | 博客
  • 博客访问: 305735
  • 博文数量: 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 21:28:36

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

阅读(317) | 评论(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 .........【阅读全文】

阅读(461) | 评论(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().........【阅读全文】

阅读(259) | 评论(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.........【阅读全文】

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

发布时间:2011-10-07 15:15:01

  创建PyStringObject对象        Python提供了两条路径,从C中原生的字符串创建PyStringObject对象。我们先考虑一下最一般的PyString_FromString。字符串就会对象的intern机制 字符缓冲池 PyStringObject效率相关的问题        Python.........【阅读全文】

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

登录 注册