Commit 9c3d44a9 by BellCodeEditor

save project

parent fc4983e6
Showing with 14 additions and 2 deletions
......@@ -9,4 +9,16 @@ h2=Hero('后裔',2,2)
h3=Hero('小灰灰',200,200)
print('鸭瑟血量:',h1.hp)
print('后裔血量:',h2.hp)
print('小灰灰血量:',h3.hp)
\ No newline at end of file
print('小灰灰血量:',h3.hp)
def AddH1Level():
h1.level=h1.level+1
h1.dps=h1.dps*2
h1.hp=h1.hp*2
AddH1Level()
AddH1Level()
AddH1Level()
AddH1Level()
AddH1Level()
AddH1Level()
print('鸭瑟血量:',h1.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