Commit d958d16c by BellCodeEditor

save project

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