Commit 39a23c3a by BellCodeEditor

save project

parent adb86372
Showing with 5 additions and 3 deletions
...@@ -5,11 +5,12 @@ def new_input(): ...@@ -5,11 +5,12 @@ def new_input():
unit= input("请输入:") unit= input("请输入:")
unit=int(unit) unit=int(unit)
except: except:
print('转换为整数')
if unit == 'q': if unit == 'q':
break return total
else:
print('转换为整数')
else: else:
total.append(unit) total.append(unit)
new_input() new_input()
print(total) print(total)
\ 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