Commit b8d0c362 by BellCodeEditor

save project

parent 86fa8580
Showing with 8 additions and 13 deletions
def new_input()
total = []
while True:
unit= input("请输入:")
try:
if unit== 'q':
break
else:
total.append(unit)
except:
print("输入整数")
else:
print(total)
class Abc():
def ___init__(self):
self.hp=300
self.attack=20
self.leevel=1
nrd=Abc()
print(c.hp)
\ 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