
python
文章平均质量分 60
Benzema67
北京邮电大学学生
展开
-
The Zen of Python
The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested原创 2013-11-29 12:03:16 · 1065 阅读 · 0 评论 -
python global variables,member variables,instance variables
global variables 全局访问 member variables 类变量,类的所有对象共享 instance variables 对象变量,只对某一对象有用 类变量写在class语句下面和def语句并列,调用时用 类.类变量 对象变量用self.对象变量声明,调用时一样 #!/usr/bin/python # Filename: objvar.py class原创 2013-12-06 17:46:15 · 1969 阅读 · 0 评论