Commit 302954ae by BellCodeEditor

save project

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