class tangsen:
def __init__(self):
self.name = "tangsen"
self.gongji = 80
self.magic = 500
self.hp = 2000
self.speed = 100
# 皮肤
def jineng1(self):
print("镇魔曲")
print("范围攻击,强制眩晕三秒,伤害1000点")
def jineng2(self):
print("如来神掌")
print("单体远程攻击,减速50%,伤害1500点(有燃烧伤害,持续8秒,每50点伤害)")
def jineng3(self):
print("紧箍神咒")
print("持续全图攻击25秒,随机攻击4个英雄,每秒攻击300点")
t1 = tangsen()
t1.jineng1()
print(t1.gongji)
t2 = tangsen()
ziheng - 唐僧的图纸(类)和对象
最新推荐文章于 2020-04-08 09:53:11 发布