Commit 440fdcf5 by BellCodeEditor

save project

parent 05e7d622
def n():
t=[]
while True:
u=input('请输入:')
if u=="q":
break
else:
try:
u=int(u)
except:
print('请输入数字')
else:
t.append(u)
return t
def st(m):
c=0
for i in m:
c=c+i
return c
p=n()
o=st(p)
#print('您一共消费了'+str(o)+'元!扫码还是现金呢?')
import func
d=func.n()
s=func.st(d)
print('这位选手的总分是'+str(s))
\ 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