Commit f1d0808d by BellCodeEditor

save project

parent 92c41d4d
Showing with 2 additions and 1 deletions
...@@ -11,7 +11,7 @@ class Cat: ...@@ -11,7 +11,7 @@ class Cat:
print("小猫飞快的跑起来") print("小猫飞快的跑起来")
def skill(self,a): def skill(self,a):
print(self.name+'抓老鼠') print(self.name+'抓'+a)
role = Cat('猫') role = Cat('猫')
role.skill("老鼠") 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