Commit a7a1bedd by BellCodeEditor

save project

parent d6c81a0f
Showing with 14 additions and 0 deletions
class Sb:
def __init__(hero,name,hp,attack):
hero.hp=hp
name=name
hero.level=1
hero.attack=attack
yase=Sb("亚瑟",900,30)
print(yase.name)
def upgrade():
yase.level += 1
if yase.level==yase.level+1
yase.hp += 50
yase.attack += 4
\ 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