Commit 0ff19ef5 by BellCodeEditor

save project

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