Commit 3fd88892 by BellCodeEditor

save project

parent e2394736
Showing with 4 additions and 10 deletions
del abc():
total = []
while True:
m= input("请输入:")
if m== 'q':
unit= input("请输入:")
if unit== 'q':
break
else:
try:
m=int(m)
except:
print("请输入一个整数")
else:
total.append(m)
finally:
print("-*30")
total.append(unit)
print(total)
abc()
\ 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