Commit ccf28d5d by BellCodeEditor

save project

parent bb52af40
Showing with 5 additions and 3 deletions
class hero: class hero:
hero.hp=1600 def __init__(self):
hero.level=5 self.hp=1600
hero.attack=200 self.level=5
self.attack=200
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