Commit dc77e009 by BellCodeEditor

save project

parent 17a12605
Showing with 14 additions and 9 deletions
def new_input():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
#if unit== 'q':
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
return total
print(total)
new_input()
try:
unit=int(unit)
except:
unit= input("请输入:")
else:
total.append(unit)
return total
print(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