Commit f2d8b270 by BellCodeEditor

save project

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