class Mario():
def move(self):
print('I am Mario!')
class Shroom():
def eat_shroom(self):
print('Now I am big!')
class BigMario(Mario, Shroom):
pass
bm = BigMario()
bm.move()
bm.eat_shroom()
class Mario():
def move(self):
print('I am Mario!')
class Shroom():
def eat_shroom(self):
print('Now I am big!')
class BigMario(Mario, Shroom):
pass
bm = BigMario()
bm.move()
bm.eat_shroom()
本文标题:Python 33 Programming Tutorial
本文链接:https://www.haomeiwen.com/subject/oiaxettx.html
网友评论