Commit ce0c3bac by BellCodeEditor

auto save

parent e0469ef1
Showing with 15 additions and 1 deletions
......@@ -5,6 +5,11 @@ class Heor:
self.hp = hp
self.attack = attack
def a():
lan.level = lan.level + 1
lan.hp = lan.hp + 50000
lan.attack = lan.attack + 4000
lan = Heor("lan",100000000000,6666666666)
xuan = Heor("xuan",123456789,987654321)
he = Heor("he",2468013579,1357924680)
......@@ -17,4 +22,13 @@ print("轩的攻击为:",xuan.attack)
print("赫的等级为:",he.level)
print("赫的血量为:",he.hp)
print("赫的攻击为:",he.attack)
a()
print("兰的等级为:",lan.level)
print("兰的血量为:",lan.hp)
print("兰的攻击为:",lan.attack)
print("轩的等级为:",xuan.level)
print("轩的血量为:",xuan.hp)
print("轩的攻击为:",xuan.attack)
print("赫的等级为:",he.level)
print("赫的血量为:",he.hp)
print("赫的攻击为:",he.attack)
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