Commit 478bf565 by BellCodeEditor

save project

parent 3d5f3d9a
Showing with 17 additions and 0 deletions
class Cat:
def__init__(self):
self.footnum=4
self.enemy=2
self.head=1
self.earnum=2
self.skin='black'
def run(self):
print('猫跑')
def skill(self,prey):
print('猫抓'+prey)
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