Commit 791b90dc by BellCodeEditor

save project

parent c41a8bd3
Showing with 5 additions and 2 deletions
......@@ -6,5 +6,8 @@ with open(r"c:\Users\Administrator\Desktop\sales_list.txt","r",encoding="utf-8")
sum=0
for aaa in na[1:]:
sum=sum+int(aaa)
sa=aaa[0]+str(sum)
print(sa)
sa=aaa[0]+str(sum)+"\n"
w.append(sa)
with open(r"c:\Users\Administrator\Desktop\new_sales_list.txt","r",encoding="utf-8") as Q:
Q.writelines(w)
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