Commit eebb9ed8 by BellCodeEditor

save project

parent 2da5ce6b
Showing with 8 additions and 2 deletions
......@@ -7,6 +7,12 @@ class hero:
gody = hero("gody",300,20)
guo = hero("锅子",240,23)
def upgrade():
gody.level=gody.level+1
gody.hp=gody.hp+50
gody.attack=gody.attack+4
#guo = hero("锅子",240,23)
upgrade()
upgrade()
print("gody的血量为:",gody.hp)
print("锅子的血量为:",guo.hp)
#print("锅子的血量为:",guo.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