Commit a8743518 by BellCodeEditor

auto save

parent e8cc74d7
Showing with 20 additions and 0 deletions
class Dog() :
def __init__(self):
self.foot = 4 #腿
self.color = "white"
class Husky(Dog):
def run(self) :
print('狗狗正在快速的跑')
\ No newline at end of file
class Cat():
def __init__(self):
self.eye = 2 # 眼睛
self.foot = 4 # 腿
self.color = "black"
def Eat(self,name):
self.name=name
print('今天吃了'+self.name)
e=Cat()
e.Eat('鱼')
\ 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