Commit e50eaed8 by BellCodeEditor

auto save

parent b28cfa88
Showing with 8 additions and 6 deletions
class Hero:
def __init__(selt):
def __init__(selt,,,):
selt.level=1
selt.hp=300
selt.attack=20
yase=Hero()
print(yase.hp)
selt.name=name
selt.hp=hp
selt.attack=attack
yase=Hero("垭瑟",300,20)
houyi=Hero("后羿",240,23)
print("垭瑟的血量为:"yase.hp)
print("后羿的血量为:"houyi.hp)
......
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