Commit bdc579ca by BellCodeEditor

auto save

parent 6334ecad
Showing with 4 additions and 1 deletions
......@@ -3,6 +3,9 @@ with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt',"r",enco
print(a)
for i in a:
b=i.split()
print(b[1:])
sb=0
for i in b[1:]:
sb=sb+int(i)
print(b[0],sb)
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