I am a newbie for python and try to understand class Inheritance.

aaabbb16 at hotmail.com aaabbb16 at hotmail.com
Sat Oct 15 02:20:22 EDT 2011


Test.py
#!/usr/bin/python
from my_lib import my_function
class my_class(my_function.name):
 def __initial__(self, name);
 pass
 def test():
 print "this is a test"
If __name__ == '__maim__':
 my_class.main()
---------------------------------------------------
my_lib.py
class my_function()
.......
........
Can anyone finish above code and let me try to understand
Class inheritance?
TIA.
-david


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /