Commit 70613bea by BellCodeEditor

save project

parent 51aec2ae
Showing with 4 additions and 3 deletions
import random
class Hero(object): class Hero(object):
def __init__(self, name): def __init__(self, name):
self.name = name self.name = name
...@@ -41,6 +42,7 @@ houyi = Player("射手", "后羿") ...@@ -41,6 +42,7 @@ houyi = Player("射手", "后羿")
yase = Hero("垭瑟") yase = Hero("垭瑟")
print(" "*30) print(" "*30)
print(" "*4,"战斗开始") print(" "*4,"战斗开始")
while Ture: while True:
print(" "*30)
chose=input("请选择(1/攻击 2/治疗)")
print(" "*30) print(" "*30)
chose=input("请选择(1/攻击 2/治疗")
\ 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