Commit e5fefc3e by BellCodeEditor

save project

parent d6c81a0f
Showing with 15 additions and 0 deletions
class Hero:
def __init__(self,name,HP,attack):
self.level = 1
self.HP = 300
self.attack = 20
yase = Hero("yase",300,20)
def asdf():
yase.level += 1
yase.HP += 50
yase.attack += 4
asdf()
print(yase.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