Commit e0469ef1 by BellCodeEditor

auto save

parent 5aff3efd
Showing with 17 additions and 8 deletions
class Heor:
def __init__(self):
def __init__(self,name,hp,attack):
self.level = 999
self.hp = 1000000000
self.attack = 666666666
self.name = name
self.hp = hp
self.attack = attack
lan = Heor("lan",100000000000,6666666666)
xuan = Heor("xuan",123456789,987654321)
he = Heor("he",2468013579,1357924680)
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)
lan = Heor()
print("lan的等级为:",lan.level)
print("lan的血量为:",lan.hp)
print("lan的攻击为:",lan.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