Commit 231fdf73 by BellCodeEditor

save project

parent 024fb164
Showing with 18 additions and 8 deletions
total = [] total = []
while True:
unit= input("请输入:") def osjl():
if unit== 'q': while True:
break
else: unit= input("请输入:")
total.append(unit)
print(total) if unit== 'q':
\ No newline at end of file break
else:
try:
unit=int(unit)
except:
print('请输入整数')
total.append(unit)
print(total)
osjl()
\ 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