Commit 7769badb by BellCodeEditor

save project

parent 597f7a3a
Showing with 19 additions and 2 deletions
with open("sales_list.txt","r",encoding="utf-8")as filel:
a=filel.readlines()
resuil_list=[]
for i in a:
date=i.split()
name=date[0]
......@@ -9,4 +10,7 @@ for i in a:
for sb in number:
sum+=int(sb)
resuil=sum
print(date[0]+str(resuil))
\ No newline at end of file
resuil_list.append(date[0]+str(resuil)+"\n")
with open("num.txt","w",encoding="utf-8")as filel:
filel.writelines(resuil_list)
\ No newline at end of file
悟空348
诺依380
小贝182
李丽201
宋扬107
王明245
李强164
孙小白222
苏琪137
刘若若147
刘阳226
王胜男123
王娇131
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