Commit 5afb0b1e by BellCodeEditor

save project

parent 8d6b407c
Showing with 1 additions and 1 deletions
...@@ -10,7 +10,7 @@ for i in a: ...@@ -10,7 +10,7 @@ for i in a:
sum1=sum1+int(j) sum1=sum1+int(j)
result=data[0]+str(sum1)+'\n' result=data[0]+str(sum1)+'\n'
nop.append(result) nop.append(result)
print(result) #print(result)
with open(r'c:\Users\15731\Documents\lesson13-5\sales_list.txt','a',encoding='utf-8')as file2: with open(r'c:\Users\15731\Documents\lesson13-5\sales_list.txt','a',encoding='utf-8')as file2:
file2.writelines(nop) file2.writelines(nop)
......
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