Commit 68506121 by BellCodeEditor

save project

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