Commit db3a6adf by BellCodeEditor

save project

parent d81b757d
Showing with 13 additions and 9 deletions
total = [] total = []
def new_input():
try:
unit=int(input('#$%#$%^'))
except:
print('#$%^@#$%^')
else:
total.append(unit)
while True: while True:
new_input() unit= input("请输入:")
if unit== 'q':
break
else:
try:
unit=int(input('#$%#$%^'))
except:
print('#$%^@#$%^')
else:
total.append(unit)
finally:
print('-'*30)
print(total) print(total)
\ 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