Commit 5eb2e2c7 by BellCodeEditor

save project

parent 3fd61942
import func
ss=func.sum()
\ No newline at end of file
bb=func.ll()
print("这位选手的总分数为:"+str(bb)+"分")
def num():
def ll():
def num():
a=[]
while True:
try:
......@@ -11,12 +12,13 @@ def num():
else:
a.append(b)
return a
c=num()
print(c)
def sum(money):
c=num()
print(c)
def sum(money):
count=0
for i in money:
count=count+i
return count
count1 = sum(c)
# print("你一共消费了",count1,"元!扫描还是现金呢?")
\ No newline at end of file
count1 = sum(c)
return count1
# print("你一共消费了",count1,"元!扫描还是现金呢?")
\ 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