Commit d958d16c by BellCodeEditor

save project

parent 6bfb1700
Showing with 7 additions and 7 deletions
total = []
#total = []
def x():
while True:
#while True:
try:
unit= input("请输入:")
if unit== 'q':
break
int(input("请输入:"))
except:
print("请输入整数")
else:
total.append(unit)
print(total)
print()
print("程序结束")
x()
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