![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
guocongbin
这个作者很懒,什么都没留下…
展开
-
Python中类成员函数均为虚函数的理解
python中类成员函数均为虚函数,我们可以通过下面的函数见识其威力:class A: def foo(self):print aclass B(A): def foo(self):print bfor x in [A(),B()]: x.foo()我们将得到的结果是ab原创 2004-08-12 00:25:00 · 5271 阅读 · 1 评论 -
Get Weather by webservice, implemented in python
转自 guocongbin.blogspot.com ###########################################################use the webservice provided by www.xview.com.cn#get the weather forcastimport httplib, urlliburl=www.xview.转载 2006-11-30 15:48:00 · 1080 阅读 · 0 评论