Commit 68506121 by BellCodeEditor

save project

parent 799d2646
Showing with 13 additions and 12 deletions
total = [] def shuru():
while True: total = []
try: while True:
unit = int(input("")) try:
unit= input("请输入:") s = input("请输入数字:如果输入q则结束\n")
except: unit = int(s)
if unit== 'q': except:
break if s == 'q':
else: break
total.append(unit) else:
print(total) total.append(unit)
\ No newline at end of file return
\ 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