Commit 9b567906 by BellCodeEditor

save project

parent 71fe9d59
Showing with 6 additions and 2 deletions
......@@ -2,4 +2,8 @@ a=open(r'c:\Users\周\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')
aa=a.readlines()
for i in aa:
b=i.split()
print(b[1:])
\ No newline at end of file
c=0
for sales in b[1:]:
c=c+int(sales)
f=b[0]+str(c)
print(f)
\ 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