Commit 403816b1 by BellCodeEditor

save project

parent 7a6cd483
Showing with 8 additions and 7 deletions
class Hero:
def __init__(self):
self.hp=250
self.denji=18
self.gongjili=100
yase=Hero()
print(yase.gongjili)
def __init__(self,hp,gongji):
self.level=1
self.name=name
self.hp=hp
self.gongji=gongji
yase=Hero("亚瑟",100,200,1000)
kai=Hero("铠",1000,500,5000)
houyi=Hero("后羿",100,200,2000)
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