Commit 2a569cf9 by BellCodeEditor

save project

parent 7f2de1c9
Showing with 10 additions and 3 deletions
def func(): def new_input():
total = [] total = []
while True: while True:
unit=input() unit=input()
if unit=='q': if unit=='q':
break break
else: else:
total.append(unit) try:
unit = int(unit)
except:
print('重输')
else:
total.append(unit)
print("-"*30)
print(total) print(total)
func() new_input()
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