Commit 66936a2c by BellCodeEditor

auto save

parent d6c81a0f
Showing with 11 additions and 0 deletions
class hero:
def __init__(slef,hp,attack):
slef.level = 1
slef.hp = hp
slef.attack = attack
yase = hero(1000,20)
print(yase.hp)
houyi = hero(500,25)
print(houyi.hp)
\ 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