Commit 2b5ed2c2 by BellCodeEditor

save project

parent bcf98f08
Showing with 12 additions and 10 deletions
......@@ -19,13 +19,15 @@ class Hero(object):
info=info1+info2+info3
print(info)
exit()
yase = Hero("垭瑟")
houyi= Hero("后羿")
yase.combat(houyi)
houyi.combat(yase)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
class player(Hero):
def __init__(self,name):
super().__init__(name)
self.hp=1
self.attack=9999999999999999999999999999999999999999999999999999999999999999999
player=player("傻逼")
print("玩家的血量为:",player.hp)
print("玩家的攻击力为:",player.attack)
com=Hero("旗鼓相当的傻逼")
player.combat(com)
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