Commit f1c6db5f by BellCodeEditor

save project

parent 1902db9e
Showing with 5 additions and 3 deletions
...@@ -5,7 +5,9 @@ def new_input(): ...@@ -5,7 +5,9 @@ def new_input():
try: try:
unit = int(unit) unit = int(unit)
except: except:
print() print("请输入一个数字!")
else: else:
total.append(price)
new_input() return total
result = new_input()
print(result)
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