Commit bc1f070c by BellCodeEditor

save project

parent 7ef6cbd4
Showing with 8 additions and 5 deletions
class Hero():
def __init__(self):
self.hp = 333
self.level = 1234567
self.attack = 123456
yase = Hero()
def __init__(self,name,hp,attack):
self.name = name
self.hp = hp
self.level =1
self.attack = attack
yase = Hero("亚瑟",300,200)
houyi = Hero("后羿",240,240)
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