Commit 7c6ee06e by BellCodeEditor

save project

parent 949964fd
import func
a=func.new_input()
b=func.sum(a)
print("总分数:"+str(b))
\ No newline at end of file
......@@ -12,12 +12,12 @@ def new_input():
else:
total.append(unit)
return total
a=new_input()
print(a)
#a=new_input()
#print(a)
def sum(money):
count=0
for i in money:
count=count+i
return count
b=sum(a)
print(b)
\ No newline at end of file
#b=sum(a)
#print(b)
\ 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