Commit 9c2a12c5 by BellCodeEditor

save project

parent bc69f430
Showing with 6 additions and 6 deletions
class Hero:
def __init__():
level=1
Hp=300
attack=100
def __init__(self):
self.level=1
self.Hp=300
self.attack=100
yase=Hero()
print(yase.level())
\ No newline at end of file
print(yase.level)
\ 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