Commit ec0d95bc by BellCodeEditor

save project

parent f47689a4
Showing with 13 additions and 0 deletions
class hero:
def __init__(self,name,hp,mp,attack,move):
self.leven = 1
self.name = name
self.hp = hp
self.mp = mp
self.attack = attack
self.move = move
yase = hero('亚瑟',300,0,200,80)
houyi = hero('后裔',240,80,240,90)
print("后裔的血量为:",houyi.hp)
print("亚瑟的攻击力为:",yase.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