Commit 9ef36035 by BellCodeEditor

save project

parent d95a5f2b
Showing with 7 additions and 3 deletions
...@@ -3,5 +3,9 @@ with open(r'c:\Users\Windows 7\Documents\lesson13-1\sales_list.txt','r',encoding ...@@ -3,5 +3,9 @@ with open(r'c:\Users\Windows 7\Documents\lesson13-1\sales_list.txt','r',encoding
# print(b) # print(b)
for i in b: for i in b:
c=i.split() c=i.split()
print(c[0]) #print(c[0])
print(c[1:]) #print(c[1:])
\ No newline at end of file d=0
for e in c[1:]:
d=d+e
print(d)
\ 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