Commit 8a587ca4 by BellCodeEditor

save project

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