Commit 6e5f3cfa by BellCodeEditor

save project

parent 6140da55
Showing with 9 additions and 6 deletions
......@@ -9,12 +9,14 @@ class Cat:
def run(self,em):
print("小猫飞快的跑起来")
def skill(self,em):
em.head-=self.footNum
info1=self.earsNum+"听到了老鼠的脚步"
info2="小猫抓到了"
info=info1+info2
print(info)
def skill(self):
self.=4
role = Cat()
role.skill("老鼠")
\ 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