Commit f1ce03a7 by BellCodeEditor

save project

parent b63a242d
Showing with 9 additions and 4 deletions
def sv(): def svg():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
...@@ -13,5 +13,10 @@ def sv(): ...@@ -13,5 +13,10 @@ def sv():
total.append(unit1) total.append(unit1)
return total return total
fg=sv() def sum(money):
print(fg) count=0
\ No newline at end of file for i in money:
count=count+i
return count
fg=svg()
resnlt sum(fg)
\ 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