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