Commit 21b13533 by BellCodeEditor

save project

parent 9db21a3a
Showing with 8 additions and 2 deletions
...@@ -5,6 +5,11 @@ def diancai(): ...@@ -5,6 +5,11 @@ def diancai():
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) try:
print(total) total.append(int(unit))
except:
print('请输入数字哦')
else:
print('添加成功')
print(total)
diancai() diancai()
\ 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