Commit 10401446 by BellCodeEditor

save project

parent 1082381c
Showing with 6 additions and 3 deletions
......@@ -2,5 +2,9 @@ with open(r'C:\Users\Administrator\Desktop\sales_list.txt',"r",encoding="utf-8")
x=sales_list.readlines()
for i in x:
a=i.split()
print(a[0])
print(a[1:])
\ No newline at end of file
c=a[1:]
ab=0
for b in c:
ab=ab+int(b)
print(a[0]+str(ab))
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