Commit 3591033e by BellCodeEditor

save project

parent 0b4b9d78
Showing with 7 additions and 2 deletions
......@@ -6,5 +6,9 @@ class hero:
self.attack=attack
yase=hero("yase",300,200)
houyi = hero("houyi",200,400)
print(houyi.attack)
def upgraed():
yase.hp=yase.hp+50
yase.level=yase.level+1
yase.attack=yase.attack+4
upgraed()
print(yase.hp)
\ 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