Commit fc5e2e52 by BellCodeEditor

save project

parent e4fc0dfe
Showing with 9 additions and 5 deletions
total = [] total = []
def superidol(): def superidol():
while True: while True:
unit= input("请输入:") try:
if unit== 'q': unit=int(input("请输入:"))
break except:
print('SB')
else: else:
total.append(unit) if unit== 'q':
print(total) break
total.append(unit)
print(total)
superidol() superidol()
\ 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