Commit bac2adbf by BellCodeEditor

save project

parent c6312ba4
Showing with 8 additions and 2 deletions
......@@ -2,5 +2,11 @@ with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco
a=file.readlines()
for i in a:
bata=i.split()
print(bata [0])
print(bata[1:])
# print(bata [0])
#print(bata[1:])
sa=0
for j in bata[1:]:
sa+int(j)
sa=sa+int(j)
print(sa)
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