Commit ba6debc8 by BellCodeEditor

save project

parent d443b539
Showing with 7 additions and 3 deletions
......@@ -2,9 +2,13 @@
#fill1.read()
with open(r'c:\Users\maku\Desktop\sales_list.txt','r',encoding='utf-8')as fill1:
d=fill1.readlines()
# print(d)
for i in d:
c=i.split()
b=0
for a in c[i:]:
b=b+a
print(b)
for a in c[1:]:
b=b+int(a)
mingz=c[0]+str(b)
print(mingz)
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