Commit ecc7d984 by BellCodeEditor

save project

parent 5ec53ebb
Showing with 10 additions and 0 deletions
cxs=open("c:\\Users\\Administrator\\Documents\\lesson13-1\\sales_list.txt",'r',encoding='utf-8')
c=cxs.readlines()
for i in c:
x=i.split()
# print(x)
v=0
for s in x[1:]:
v+=int(s)
print(x[0],end=" ")
print(v)
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