Commit c0c46e63 by BellCodeEditor

save project

parent d1ee0b6c
Showing with 5 additions and 4 deletions
...@@ -7,9 +7,10 @@ def new_input(): ...@@ -7,9 +7,10 @@ def new_input():
try: try:
unit=int(unit) unit=int(unit)
except: except:
print("滚你妈,傻波一,脑残,写什么其他玩意儿!") print("不对!")
continue continue
else: else:
total.append(unit) total.append(unit)
print(total) return total
new_input() result = new_input()
\ No newline at end of file print("输入的菜品价格是:",result)
\ 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