Commit b1ee17b4 by BellCodeEditor

save project

parent 991eaa1d
Showing with 12 additions and 1 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)
\ No newline at end of file
class Hero: class Hero:
dar__init__(self): daf__init__(self):
self.level=1 self.level=1
self.hp=300 self.hp=300
self.attack=20 self.attack=20
......
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