Commit ddf53683 by BellCodeEditor

save project

parent feb8cef1
Showing with 8 additions and 1 deletions
...@@ -6,9 +6,16 @@ ...@@ -6,9 +6,16 @@
lubenwei = hero("卢本伟",99999,999) lubenwei = hero("卢本伟",99999,999)
sunxaiochuan = hero("孙笑川",99999,999) sunxaiochuan = hero("孙笑川",99999,999)
print("卢本伟的血量为:",lubenwei.hp) print("卢本伟的血量为:",lubenwei.hp)
print("孙笑川的血量为:",sunxaiochuan.hp)的攻击力为:",yase.attack) print("孙笑川的血量为:",sunxaiochuan.hp)
""" """
def upgrade(): def upgrade():
lubenwei.level=lubenwei.level+1 lubenwei.level=lubenwei.level+1
lubenwei.hp=lubenwei.hp+99999 lubenwei.hp=lubenwei.hp+99999
lubenwei.attack=lubenwei.hpattack+999 lubenwei.attack=lubenwei.hpattack+999
lubenwei = hero("卢本伟",99999,999)
print("卢本伟的初始血量为:",lubenwei.hp)
upgrade()
upgrade()
print()
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