Commit 68506121 by BellCodeEditor

save project

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