Commit 8ee173c5 by BellCodeEditor

save project

parent c734240f
Showing with 5 additions and 0 deletions
...@@ -16,6 +16,10 @@ class Hero(object): ...@@ -16,6 +16,10 @@ class Hero(object):
else: else:
info3=enemy.name+"陣亡,游戲結束" info3=enemy.name+"陣亡,游戲結束"
print(info) print(info)
exit()
class player():
def__init__(self,name):
super().__init__(name)
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
yase.combat(houyi) yase.combat(houyi)
\ 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