Commit eb31edd3 by BellCodeEditor

auto save

parent 41f73ef2
Showing with 2 additions and 2 deletions
#创建英雄类Hero
#定义类属性(init):等级level:1;血量hp:300;攻击力attack:20
#定义类属性(init),形参name,hp,attack:等级:1;血量:300;攻击力:20
#英雄角色:yase
#英雄角色:yase(亚瑟)、houyi
yase=Hero()
#打印yase的血量
print('yase的血量为',?)
......
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