Commit acb242e0 by BellCodeEditor

save project

parent 70850cf8
Showing with 10 additions and 0 deletions
class hero:
def __init__(self,name,hp,attack,lan):
self.hp=hp
self.level=name
self.attack=attack
Dreus=hero("诺手",652.24,64,263)
jianmo=hero("剑魔",580,60,0)
print("诺手生命值一级为:",Dreus.hp)
print("剑魔攻击力一级为:",jianmo.attack)
\ 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