Commit ec965fc6 by BellCodeEditor

save project

parent b4c84154
Showing with 8 additions and 6 deletions
...@@ -4,10 +4,12 @@ class Cat: ...@@ -4,10 +4,12 @@ class Cat:
self.eyeNum = 2 self.eyeNum = 2
self.head = 1 self.head = 1
self.earsNum = 2 self.earsNum = 2
self.skin = "black" self.skin = "white"
def run(self): def run(self):
print("用谷歌翻译") print("用谷歌翻译")
def skill(): class Husky(Dog)
print("解放后v吧"+prey) def __init__(self):
role = Cat() super().__init__()
role.skill("和i和i") self.skin="black"
\ No newline at end of file coco=Husky()
print(coco.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