Commit aaecce32 by BellCodeEditor

save project

parent 4d45c1ee
Showing with 12 additions and 8 deletions
total = [] def new_input():
while True: total = []
while True:
unit= int(input("请输入:"))
if unit== 'q':
break
else:
try: try:
unit= input("请输入:") unit = innt(unit)
except: except:
print("重输") print("重输")
else: else:
if unit== 'q':
break
else:
total.append(unit) total.append(unit)
print(total) return total
\ No newline at end of file
prit(new_input())
\ 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