Commit cebee45e by BellCodeEditor

save project

parent 2ed38a04
import func
point=func.new_input()
add=func.summ(point)
print('分数为'+str(add))
\ No newline at end of file
...@@ -16,11 +16,12 @@ def new_input(): ...@@ -16,11 +16,12 @@ def new_input():
return total return total
def summ(money): def summ(money):
su=0
for i in money: for i in money:
su=i+su su=i+su
return su return su
price=new_input() # price=new_input()
a=sum(price) # a=sum(price)
print(a) # print(a)
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