Commit a7167605 by BellCodeEditor

save project

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