Commit 210ea6a2 by BellCodeEditor

save project

parent 102336fe
......@@ -14,12 +14,12 @@ def new_input():
print('*'*30)
print(total)
return total
a=new_input()
print(a)
#a=new_input()
#print(a)
def sum(money):
count=0
for i in money:
count+=i
return count
b=sum(a)
print('您一共花费'+str(b)+'块钱')
\ No newline at end of file
#b=sum(a)
#print('您一共花费'+str(b)+'块钱')
\ No newline at end of file
import func
data=func.new_input()
score=func.sum(data)
print('这个选手总分是'+str(score)+'分')
\ 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