Commit 8907acfd by BellCodeEditor

save project

parent 096284fd
Showing with 10 additions and 1 deletions
......@@ -3,5 +3,13 @@ with open(r'C:\Users\KZJ\Desktop\sales_list.txt',"r",encoding='utf-8')as file:
for i in b:
a=i.split()
print(a[0])
#print(a[0])
d=0
for c in a[1:]:
e=int(c)
d=d+e
print(a[0]+str(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