Commit 4b0316c4 by BellCodeEditor

save project

parent 93361b17
Showing with 2 additions and 1 deletions
...@@ -9,5 +9,5 @@ for i in a: ...@@ -9,5 +9,5 @@ for i in a:
sum=sum+int(sales) sum=sum+int(sales)
ttt=data[0]+str(sum)+'\n' ttt=data[0]+str(sum)+'\n'
unoya.append(ttt) unoya.append(ttt)
with open(r'c:\Users\刘翔\Documents\lesson13-1\test.txt','a',encoding='utf-8') as file: with open(r'C:\Users\刘翔\Desktop\test.txt.txt','a',encoding='utf-8') as file:
file.writelines(unoya) file.writelines(unoya)
\ 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