Commit 797a2eb0 by BellCodeEditor

save project

parent c476a452
Showing with 3 additions and 0 deletions
......@@ -4,6 +4,9 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
if a level=level+1:
self.hp=hp+50
self.attack=attack+5
yase=Hero("yase",300,20)
houyi=Hero("houyi",250,23)
k=Hero('k',5600,200)
......
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