Commit db916a58 by BellCodeEditor

save project

parent ac048e44
Showing with 17 additions and 3 deletions
class Cat:
def __int__
\ No newline at end of file
class Dog:
def __init__(self):
self.foott = 4
self.eye = 2
self.head = 1
self.ears = 2
self.skin = 'white'
def run(self):
print('狗狗跑了起来')
class Husky(Dog):
def __init__(self):
super().__init__()
self.skin = 'black'
dog = Husky()
print(dog.skin)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment