Commit 94731c94 by BellCodeEditor

save project

parent 980390a8
Showing with 10 additions and 5 deletions
...@@ -8,7 +8,12 @@ yase=Hero("亚瑟",2000000002,9999999999999999999999999999999999999999999999999) ...@@ -8,7 +8,12 @@ yase=Hero("亚瑟",2000000002,9999999999999999999999999999999999999999999999999)
print("史瀚鑫",9999999999999999999999999999999999999999999999999999999999999999999999999999999,9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999) print("史瀚鑫",9999999999999999999999999999999999999999999999999999999999999999999999999999999,9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
print("亚瑟的血量为:",yase.hp) print("亚瑟的血量为:",yase.hp)
print("后羿的血量为:",houyi.hp) print("后羿的血量为:",houyi.hp)
def upgrade(): def upgrade():
yase.level = yase.leve+1 yase.level = yase.leve+1
yase.hp = yase.hp+50 yase.hp = yase.hp+50
yase.attack = yase.attack yase.attack = yase.attack
\ No newline at end of file yase = Hero("亚瑟",300,20)
yeas.upgrade()
print("等级提升为: ",yeas.leve1)
print("血量为: ",yeas.hp)
print("攻击力为: ",yeas.attack)
\ 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