Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2299426
  • 博文数量: 321
  • 博客积分: 3440
  • 博客等级: 中校
  • 技术积分: 2992
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-24 09:08
个人简介

我就在这里

文章分类

全部博文(321)

文章存档

2015年(9)

2014年(84)

2013年(101)

2012年(25)

2011年(29)

2010年(21)

2009年(6)

2008年(23)

2007年(23)

发布时间:2013-03-05 11:41:54

self.Bind vs. self.button.BindA common question/confusion that wxPython developers have is what's the difference between self.Bind(wx.EVT_BUTTON, self.OnButton, self.button)and self.button.Bind(wx.EVT_BUTTON, self.OnButton)where self is some window further .........【阅读全文】

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

发布时间:2013-02-27 15:06:24

如何在python中实现 类似java中, Class.forName().newInstance()的功能1. 静态导入tommy@ubuntu:~$ pythonPython 2.7.2+ (default, Oct 4 2011, 20:03:08)[GCC 4.6.1] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> from time import time>>> globals(){'__builtins__.........【阅读全文】

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

发布时间:2013-02-27 14:46:04

在笔者,也就是我的概念里,自省和反射是一回事,当然其实我并不十分确定一定以及肯定,所以如果这确实是两个不同的概念的话,还请多多指教 :) 转载请注明作者、出处并附上原文链接,多谢!update 2011-3-10: 更正函数的func_globals属性含义。 首先通过一个例子来看一下本文中可能用到的对象和相关概念.........【阅读全文】

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

发布时间:2013-02-27 08:26:28

需求:你需要在windows系统下设置文件的属性,比如要将文件属性设置为只读,归档等.讨论:PyWin32's的win32api模块提供了方法SetFileAttributes,使得这个问题的解决方案变得异常简单: import win32con, win32api, os# create a file, just to show how to manipulate itthefile = 'test'f = open('test', 'w').........【阅读全文】

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

发布时间:2013-02-27 08:10:14

Table 2.1. Python运算符列表运算符描述x+y,x-y加、减,“+”号可重载为连接符x*y,x**y,x/y,x%y相乘、求平方、相除、求余,“*”号可重.........【阅读全文】

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

登录 注册