Commit 2b499711 by BellCodeEditor

save project

parent c4dc4a26
Showing with 12 additions and 13 deletions
......@@ -11,27 +11,26 @@ class Hero:
self.sillk1=sillk1
self.sillk2=sillk2
self.sillk3=sillk3
def upgrade(self):
self.hp=self.hp+500
self.attack=self.attack+100
z=input('你想知道的属性是:')
亚瑟=Hero(1,3622,145,b,1,2,3)
yase=Hero(1,3622,145,b,1,2,3)
yase.upgrade()
if z=='易难度':
print('亚瑟的'+z+'为:',亚瑟.difficultdegree)
print('亚瑟的'+z+'为:',yase.difficultdegree)
if z=='血量':
print('亚瑟的'+z+'为:',亚瑟.hp)
print('亚瑟的'+z+'为:',yase.hp)
if z=='攻击':
print('亚瑟的'+z+'为:',亚瑟.attack)
print('亚瑟的'+z+'为:',yase.attack)
if z=='被动':
print('亚瑟的'+z+'为:',亚瑟.passive)
print('亚瑟的'+z+'为:',yase.passive)
if z=='一技能':
print('亚瑟的'+z+'为:',亚瑟.sillk1)
print('亚瑟的'+z+'为:',yase.sillk1)
if z=='二技能':
print('亚瑟的'+z+'为:',亚瑟.sillk2)
print('亚瑟的'+z+'为:',yase.sillk2)
if z=='三技能':
print('亚瑟的'+z+'为:',亚瑟.sillk3)
def uplevel():
亚瑟.hp=亚瑟.hp+100
亚瑟.attack=亚瑟.attack+100
uplevel()
uplevel()
print('亚瑟的'+z+'为:',yase.sillk3)
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