# -*- coding: utf-8 -*-
class partner(object):
_table = 'partner'
def sendsms(self):
print "I am partners"
def sendemail(self):
print "send email"
class student(partner):
_inherit = 'partner'
_table = 'student'
def sendsms(self):
print "I am student"
print "@@", self._inherit
print "###", self._table
super(student,self).sendsms()
class student(student):
_inherit = 'student'
def fees(self):
print "1000 INR"
t = student()
t.sendsms()
这将递归,问题或继承问题是什么?