Commit b4fc04c1 by BellCodeEditor

save project

parent 704b296c
Showing with 10 additions and 5 deletions
class Hero:
def __init__ (self,):
def __init__ (self,name,hp,attack):
self.level=1
self.hp=50
self.atk=3
yase=Hero()
self.name=name
self.hp=hp
self.attack=attack
yase=Hero("yase",233,44)
hp=Hero("hp",250,23)
a=Hero("a",222222,123)
print(yase.level)
print(yase.hp)
print(yase.atk)
print(yase.attack)
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