摘要:
首先,运行如下代码:class D(object): def foo(self): print "class D" class B(object): def foo(self): print "class B" su... 阅读全文
posted @ 2013-03-05 22:46
jianhong
阅读(331)
评论(0)
推荐(0)
摘要:
Python 中的 class 分为 classical 和 new-style 两大类。其中 classical 是 python 一直沿用的,而 new-style 是 2.2 才开始引入的东西。只要 class 继承于 object,或 bases class 里面任意一个继承于 object... 阅读全文
posted @ 2013-03-05 18:37
jianhong
阅读(168)
评论(0)
推荐(0)
摘要:
Python 中的 class 分为 classical 和 new-style 两大类。其中 classical 是 python 一直沿用的,而 new-style 是 2.2 才开始引入的东西。只要 class 继承于 object,或 bases class 里面任意一个继承于 object... 阅读全文
posted @ 2013-03-05 18:37
jianhong
阅读(222)
评论(0)
推荐(0)
摘要:
出处:http://www.cnblogs.com/MikeZhang/archive/2011/11/19/2255169.html用python读取配置文件比较方便,比如下面一个配置文件:0.ini文件:---------------文件开始----------------[global]ip ... 阅读全文
posted @ 2013-03-05 10:42
jianhong
阅读(210)
评论(0)
推荐(0)
摘要:
出处:http://www.cnblogs.com/MikeZhang/archive/2011/11/19/2255169.html用python读取配置文件比较方便,比如下面一个配置文件:0.ini文件:---------------文件开始----------------[global]ip ... 阅读全文
posted @ 2013-03-05 10:42
jianhong
阅读(115)
评论(0)
推荐(0)
浙公网安备 33010602011771号