Commit 2b1378c7 by BellCodeEditor

save project

parent 1974c18b
Showing with 5 additions and 2 deletions
...@@ -3,8 +3,11 @@ with open(r'c:\Users\EDY\Desktop\sales_list.txt.py','r',encoding='utf-8)')as fil ...@@ -3,8 +3,11 @@ with open(r'c:\Users\EDY\Desktop\sales_list.txt.py','r',encoding='utf-8)')as fil
for i in a: for i in a:
date=i.split() date=i.split()
print(date[0]) sum=0
print(date[1:]) for sales in date[1:]:
sum=sum+(sales)
result=data[0]+str(sum)
print(result)
......
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