Commit 0ff19ef5 by BellCodeEditor

save project

parent f3fba57f
Showing with 5 additions and 5 deletions
class Hero: class Hero:
def __init__(self): def __init__(self,name,hp,attack):
self.attack=20 self.attack=attack
self.hp=500 self.hp=hp
self.level=20 self.level=1
yase=Hero() yase=Hero()
print print(yase.hp)
......
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