Commit 39a23c3a by BellCodeEditor

save project

parent adb86372
Showing with 3 additions and 2 deletions
...@@ -5,9 +5,10 @@ def new_input(): ...@@ -5,9 +5,10 @@ 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)
......
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