Commit af44ea2d by BellCodeEditor

save project

parent fcae0ead
Showing with 10 additions and 2 deletions
......@@ -13,4 +13,13 @@ class Cat:
print("小猫抓住了老鼠")
role = Cat()
role.skill("老鼠")
\ No newline at end of file
role.skill("老鼠")
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