Commit 302954ae by BellCodeEditor

save project

parent fc5e2e52
Showing with 15 additions and 8 deletions
total = []
def superidol(): def superidol():
total=[]
while True: while True:
unit=input('?')
if unit=='q':
break
else:
try: try:
unit=int(input("请输入:")) unit=int(unit)
except: except:
print('SB') print("鬼!")
else: else:
if unit== 'q':
break
total.append(unit) total.append(unit)
print(total) finally:
superidol() print("*"*30)
\ No newline at end of file return total
result=superidol()
print(result)
\ 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