Commit 3f417bfb by BellCodeEditor

save project

parent e97300bb
Showing with 10 additions and 1 deletions
...@@ -8,7 +8,15 @@ def new_input(): ...@@ -8,7 +8,15 @@ def new_input():
try: try:
money = int(money) money = int(money)
except: except:
print("请") print("请重新")
def sum(money)
count = 0
for i in money
count = count + i
return count
price = new_input()
pay = sum(price)
print()
print(total) print(total)
new_input() new_input()
\ 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