Commit 15d6f6c8 by BellCodeEditor

save project

parent d641097f
Showing with 8 additions and 8 deletions
class Hero():
def__init__(self,name,hp,attack): def uparade():
self.level=1 yase.level=yase.level+1
self.name=name yase.hp=yase.hp+50
self.hp=hp yase.attack=yase.attack+4
self.attack=attack
yase=Hero("亚瑟",300,20)
print("亚瑟的攻击力为:")
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