Commit e95a66ab by BellCodeEditor

save project

parent 27fd4cb4
Showing with 8 additions and 5 deletions
class Hero(yase):
def __init__(self):
class Hero():
def __init__(self,name,hp,attack):
self.level=1
self.hp=3000
self.attack=50
yase=Hero()
self.name=name
self.hp=hp
self.attack=attack
yase=Hero("亚瑟",3500,500)
houyi=Hero("后裔",3000,700)
print(yesa.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