Commit 45537089 by BellCodeEditor

save project

parent ec71a113
Showing with 2 additions and 16 deletions
def func():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
try:
func()
except:
print("输入错误,请重新输入1个数字")
else:
print("输入正确")
\ No newline at end of file
func()
\ 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