Commit 9de11777 by BellCodeEditor

save project

parent 22867470
Showing with 11 additions and 11 deletions
def __init__(self):
self.hp = 4
self.xp = 2
def __init__(self):
self.hp = 5
self.xp = 1
class Cat: class Cat:
def __init__(self): def __init__(self):
self.footNum = 4 # 腿 self.footNum = 4 # 腿
self.eyeNum = 2 # 眼睛 self.eyeNum = 2 # 眼睛
self.head = 1 # 头 self.head = 1 # 头
self.earsNum = 2 # 耳朵 self.earsNum = 2 #
self.skin = "black" self.skin = "black"
def run(self): def run(self):
...@@ -13,13 +21,4 @@ class Cat: ...@@ -13,13 +21,4 @@ class Cat:
print("小猫抓住了老鼠") print("小猫抓住了老鼠")
role = Cat() role = Cat()
role.skill("老鼠") role.skill("老鼠")
\ No newline at end of file
def __init__(self):
self.hp = 4
self.xp = 2
def __init__(self):
self.hp = 5
self.xp = 1
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