Commit 0dcc765a by BellCodeEditor

save project

parent 20d96061
Showing with 10 additions and 5 deletions
...@@ -97,7 +97,13 @@ class hero: ...@@ -97,7 +97,13 @@ class hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=hero() def upgrade():
houyi=hero() yase.level=yase.level+1
print() yase.hp=yase.hp+50
print() yase.attack=yase.attack+4
\ 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