Commit ec49d479 by BellCodeEditor

save project

parent 2da1a23d
Showing with 20 additions and 0 deletions
class Hero:
daf__init__(self):
self.level=1
self.name=nama
self.hp=hp
self.attack=attack
yase=Hero("埡瑟",300,20)
houyi=Hero("后羿",240,23)
prinr("埡瑟的血量為:".yase.hp)
prinr("后羿的血量為:".houyi.hp)
def upgrsde()
yase.level=self.level+1
yase.hp=yase.hp+1
yase.attack=yase.attac+1
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