Commit c6d38d1d by BellCodeEditor

auto save

parent 49b0cfbd
Showing with 3 additions and 2 deletions
class Hero: class Hero:
def __init__(selfname): def __init__(selfname,hp,attack):
self.level=1 self.level=1
self.hp=300 self.hp=300
self.attack=40 self.attack=40
yase=Hero() yase=Hero(name,hp,attack)
print(yase.hp) print(yase.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