Commit d744c676 by BellCodeEditor

save project

parent 32b3eb4c
Showing with 5 additions and 0 deletions
......@@ -6,6 +6,11 @@ class Hero:
self.attack=attack
kai=Hero('凯',5000,100)
jialuo=Hero('伽罗',4000,200)
def upgrade():
kai.HP=kai.HP+100
kai.level=kai.level+100
kai.attack=kai.attack+1
upgrade()
print(kai.HP)
print(jialuo.HP)
......
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