Commit a6aa5c8f by BellCodeEditor

save project

parent d378d5fe
Showing with 7 additions and 7 deletions
class Hero:
def __init__(self,name,hp,attack):
def __init__(self,name):
self.name = name
self.level = 1
self.hp = hp
self.attack = attack
self.hp = 2000
self.attack = 100
yase = Hero("亚瑟",10000,999)
houyi = Hero("后羿",999,10000)
print(yase.hp)
\ No newline at end of file
#yase = Hero("亚瑟",100000000000,99999999999)
#houyi = Hero("后羿",999,10000)
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