Commit 639c2792 by BellCodeEditor

save project

parent ada7f1a8
Showing with 10 additions and 1 deletions
......@@ -16,8 +16,16 @@ class Hero(object):
else:
i3=enemy.name+"卒"
i = i1 + i2 + i3
print(i)
exit()
class Player(Hero):
def __init__(self,name):
s().__init__(name)
self.h = 5418
self.a = 88
Harrypotter = Hero("哈利波特")
Voldment = Hero("伏地魔")
Harrypotter.combat(Voldment)
\ No newline at end of file
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