Commit d62a7d50 by BellCodeEditor

auto save

parent 3bf2e184
Showing with 15 additions and 9 deletions
total = [] def 函数():
while True: total = []
unit= input("请输入:") while True:
if unit== 'q': unit= input("请输入:")
break if unit== 'q':
else: break
total.append(unit) else:
print(total) try:
\ No newline at end of file unit=int(unit)
total.append(unit)
except:
print("提示信息,请输入整数")
return total
print(函数())
\ 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