Commit 06f78421 by BellCodeEditor

save project

parent c3654d52
money=[12,32,35,47] money=[1,32,35,47]
def sum(money): def sum(money):
list=0 list=0
for i in money: for i in money:
list=list+i list=list+i
return list return list
print('您一共消费了'+str(money)+'元') print('您一共消费了'+money+'元')
\ No newline at end of file \ No newline at end of file
def :
list=0
for i in money:
list=list+i
return list
import func
data=func.new_input()
score=func.sum(data)
print('这位选手的总分为:'+str(score))
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