Commit adba5361 by BellCodeEditor

auto save

parent ac795495
Showing with 10 additions and 16 deletions
class Cat: class player(Hwro):
def __init__(self): def_init_(seif,name):
self.footNum = 4 # 腿 seif.level = 1
self.eyeNum = 2 # 眼睛 seif.name = name
self.head = 1 # 头 seif.hp = 200
self.earsNum = 2 # 耳朵 seif.attack = 50
self.skin = "black"
def run(self): player = player("后羿")
print("小猫飞快的跑起来") print("玩家的血量值为:"player.hp)
print("玩家的攻击力为:",player.attack)
def skill(): \ No newline at end of file
??
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