Commit 2b0dcb23 by BellCodeEditor

save project

parent 3e0b94d4
Showing with 6 additions and 0 deletions
......@@ -7,6 +7,12 @@ class Hero(object):
self.name = name
def combat(攻击): # 攻击
info1=self.name++enemy.namy+"发起攻击,"
info2="造成"+str(sself.attack) +"点伤害,"
enemy.hp-=self.attack
if enemy.hp>0:
inof3+enemy.name+"还剩下"+str(enem.hp)+
info=info1+info2+info3
yase = Hero("垭瑟")
......
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