Commit ae75f627 by BellCodeEditor

save project

parent bc386569
Showing with 6 additions and 2 deletions
...@@ -2,4 +2,8 @@ with open("c:\\Users\\XMBC\\Documents\\lesson13-1\\sales_list.txt",'r',encoding= ...@@ -2,4 +2,8 @@ with open("c:\\Users\\XMBC\\Documents\\lesson13-1\\sales_list.txt",'r',encoding=
a=f1.readlines() a=f1.readlines()
for i in a: for i in a:
s=i.split() s=i.split()
print(s[1:]) #print(s[1:])
\ No newline at end of file q=0
for d in s[1:]:
q=q+int(d)
print(q)
\ 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