Commit 1bf3a1a6 by BellCodeEditor

auto save

parent 6641cc86
Showing with 7 additions and 2 deletions
...@@ -12,5 +12,10 @@ def new_input(): ...@@ -12,5 +12,10 @@ def new_input():
else: else:
list1.append(nuit) list1.append(nuit)
print('-'*30) print('-'*30)
print(list1) return list1
new_input() list2 = new_input()
sum = 0
for i in list2:
sum += i
print("所有菜总价为:",end = ' ')
print(sum)
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