Commit 7d606f33 by BellCodeEditor

save project

parent 54cea791
Showing with 7 additions and 5 deletions
class Hero:
def__init__(self)
self.leven=1
self.hp=300
self.attack=120
yase=Hero()
def __init__(self,name,hp,attack):
self.leven=1
self.name=name
self.hp=hp
self.attack=attack
yase=Hero("year",500,20)
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