Commit ab29c020 by BellCodeEditor

save project

parent 1789f8c9
Showing with 2 additions and 2 deletions
...@@ -9,10 +9,10 @@ class Cat: ...@@ -9,10 +9,10 @@ class Cat:
print("让小猫飞快地跑起来") print("让小猫飞快地跑起来")
def skill(self,a): def skill(self,a):
print(self+"抓住了"+a) print("猫咪抓住了"+a)
role = Cat role = Cat()
role.skill("老鼠") role.skill("老鼠")
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