Commit 39e44953 by BellCodeEditor

save project

parent 61e69d69
Showing with 9 additions and 5 deletions
......@@ -2,9 +2,12 @@ def a():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
if unit== 'q':
break
try:
b = int(unit)
finally total.append(unit):
pass
else:
print(total)
a()
\ 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