Commit 5fb77039 by BellCodeEditor

save project

parent da9fa6b9
Showing with 0 additions and 2 deletions
...@@ -7,8 +7,6 @@ class Hero: ...@@ -7,8 +7,6 @@ class Hero:
NB=Hero("NB",500,50) NB=Hero("NB",500,50)
DCM=Hero("DCM",300,60) DCM=Hero("DCM",300,60)
print("NB血量为:",NB.hp)
print("DCM血量为:",DCM.hp)
def upgrade(): def upgrade():
NB.level=NB.level+1 NB.level=NB.level+1
NB.hp=NB.hp+20 NB.hp=NB.hp+20
......
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