Commit 302954ae by BellCodeEditor

save project

parent fc5e2e52
Showing with 17 additions and 10 deletions
total = []
def superidol(): def superidol():
total=[]
while True: while True:
try: unit=input('?')
unit=int(input("请输入:")) if unit=='q':
except: break
print('SB')
else: else:
if unit== 'q': try:
break unit=int(unit)
except:
print("鬼!")
else:
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