Commit 4a8b8f01 by BellCodeEditor

auto save

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