Commit a6aa5c8f by BellCodeEditor

save project

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