Commit a3dadf68 by BellCodeEditor

save project

parent d6c81a0f
Showing with 19 additions and 0 deletions
def jiadengji():
houyi.level=houyi.level+1
houyi.hp=houyi.hp+100
houyi.attack=houyi.attack+10
class Yingxiong():
def __init__(self,mingzi,xueliang,gongjili):
self.level=1
self.name=mingzi
self.hp=xueliang
self.attack=gongjili
yase=Yingxiong("亚瑟",300,20)
houyi=Yingxiong("后羿",20,300)
zhouxinran=Yingxiong("周欣然",2,3000)
print(houyi.hp)
jiadengji()
print(houyi.hp)
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