Commit ce82eb36 by BellCodeEditor

save project

parent c09c52e2
Showing with 4 additions and 3 deletions
class hero: class hero:
def _init_(self): def _init_(self):
self.level(14) self.level=14
self.hp(200) self.hp=200
self.attack(10) self.attack=10
yase=Hero() yase=Hero()
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