Commit 9295d8e1 by BellCodeEditor

auto save

parent fb48128d
Showing with 5 additions and 3 deletions
...@@ -12,5 +12,7 @@ class Cat: ...@@ -12,5 +12,7 @@ class Cat:
def skill(self,target): def skill(self,target):
print(f'{self.name}抓住了{target}') print(f'{self.name}抓住了{target}')
小猫 = Cat('小猫') a = Cat('a')
小猫.skill("老鼠") a.skill("老鼠")
\ No newline at end of file a.run
print('a')
\ 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