Commit 62420221 by BellCodeEditor

save project

parent 1c584ebc
Showing with 3 additions and 2 deletions
class hero: class hero:
__init__(self): def __init__(self):
self.level=4 self.level=4
self.hp=500 self.hp=500
self.attack=100 self.attack=100
pass
yase=hero() yase=hero()
print("hp=" self.hp) print("hp=" self.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