Commit 898f8824 by BellCodeEditor

save project

parent b46e98fb
Showing with 6 additions and 5 deletions
...@@ -2,8 +2,9 @@ with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco ...@@ -2,8 +2,9 @@ with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco
ofi=ftkt.readlines() ofi=ftkt.readlines()
for i in ofi: for i in ofi:
bkgg=i.split() bkgg=i.split()
print(bkgg[1:]) #print(bkgg[1:])
sum=0 sum=0
for such in data[1:]: for such in bkgg[1:]:
sum=sum+int(sales) sum=sum+int(such)
print(sum) result=bkgg[0]+str(bkgg)
\ No newline at end of file print(result)
\ 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