Commit a7ea1412 by BellCodeEditor

save project

parent aafabc8a
Showing with 8 additions and 2 deletions
......@@ -2,6 +2,11 @@ a=open(r'c:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8')
b=a.readlines()
for i in b:
date=i.split()
print(date[0])
print(date[1:])
#print(date[0])
#print(date[1:])
sum=0
for c in date[1:]:
sum=sum+int(c)
d=date[0]+str(sum)
print(d)
a.close()
\ 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