Commit 02b4a623 by BellCodeEditor

save project

parent 410fdd61
Showing with 1 additions and 14 deletions
...@@ -9,7 +9,7 @@ for i in a: ...@@ -9,7 +9,7 @@ for i in a:
sum = sum + int(j) sum = sum + int(j)
result = b[0] + ":" + str(sum)+ '\n' result = b[0] + ":" + str(sum)+ '\n'
ss.append(result) ss.append(result)
with open(r'C:\Users\jfm\Documents\lesson11_1\sales_list1.txt','a',encoding='utf-8') as file: with open(r'C:\Users\jfm\Documents\lesson11_1\sales_list1.txt','w',encoding='utf-8') as file:
file.writelines(ss) file.writelines(ss)
......
...@@ -11,16 +11,3 @@ ...@@ -11,16 +11,3 @@
刘阳:2359 刘阳:2359
王胜男:2482 王胜男:2482
王娇:2613 王娇:2613
悟空:348
诺依:728
小贝:910
李丽:1111
宋扬:1218
王明:1463
李强:1627
孙小白:1849
苏琪:1986
刘若若:2133
刘阳:2359
王胜男:2482
王娇:2613
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