Commit 1eedc997 by BellCodeEditor

save project

parent ca20accb
del new_input
\ No newline at end of file
import func
data = func.new_input()
score = func.sum_price(data)
print("这名选手的总分为:"+str(score))
\ No newline at end of file
......@@ -12,12 +12,9 @@ def new_input():
else:
total.append(n)
return total
total = new_input()
print(total)
def sum_price(price_list):
sums = 0
for i in price_list:
sums = sums+i
return sums
cost = sum_price(total)
print("总的价格为",cost)
\ 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