Commit 210ea6a2 by BellCodeEditor

save project

parent 102336fe
...@@ -14,12 +14,12 @@ def new_input(): ...@@ -14,12 +14,12 @@ def new_input():
print('*'*30) print('*'*30)
print(total) print(total)
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+=i count+=i
return count return count
b=sum(a) #b=sum(a)
print('您一共花费'+str(b)+'块钱') #print('您一共花费'+str(b)+'块钱')
\ No newline at end of file \ 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