Commit 6cc39b01 by BellCodeEditor

save project

parent 3fe3ae44
Showing with 770 additions and 4 deletions
with open(r'c:\Users\l\Desktop\sales_list.txt',"r",encoding='utf-8') as file: with open(r'c:\Users\l\Desktop\sales_list.txt',"r",encoding='utf-8') as file:
data=file.readlines() a=file.readlines()
for i in data: for i in a:
newdata=i.split() newdata=i.split()
print(newdata[0]) #print(newdata[0])
print(newdata[1:]) #print(newdata[1:])
sum=0
for sales in newdata[1:]:
sum=sum+int(sales)
...@@ -13036,3 +13036,764 @@ ...@@ -13036,3 +13036,764 @@
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