Commit 54507c60 by BellCodeEditor

auto save

parent 8b4d8632
Showing with 9 additions and 7 deletions
......@@ -5,13 +5,16 @@ class Cat:
self.head = 1 # 头
self.earsNum = 2 # 耳朵
self.skin = "black"
print(self.eyeNum)
def run(self):
print("小猫飞快的跑起来")
class player(Cat):
def __init__(self,name):
self.footNum=3
self.eyeNum=1
self.name=name
print(self.eyeNum)
def skill(self,name):
print("小猫抓住了"+name)
p=player("1号")
c=Cat()
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