Commit 1fa925cb by BellCodeEditor

save project

parent d40aa94f
Showing with 19 additions and 5 deletions
...@@ -8,11 +8,25 @@ def new_input(): ...@@ -8,11 +8,25 @@ def new_input():
try: try:
money= int(money) money= int(money)
except: except:
print("hdjesfohefjhe") print("hbcdeegr")
finally: finally:
total.append(unit) total.append(money)
print("-"*30) print("-"*30)
return total return total
resule = new_input() result = new_input()
print(result) print(result)
\ No newline at end of file
def sum(money):
count = 0
for i in money:
count=count+i
return count
price = new_input()
pay = sum(price)
print("yhtrfhjtfjik"+str(pay)+"yuan")
\ 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