Commit c06a2588 by BellCodeEditor

auto save

parent 21071378
Showing with 1 additions and 14 deletions
...@@ -2,7 +2,7 @@ with open(r'c:\Users\makcoo\Documents\lesson13-1\sales_list.txt','r',encoding='u ...@@ -2,7 +2,7 @@ with open(r'c:\Users\makcoo\Documents\lesson13-1\sales_list.txt','r',encoding='u
a=file.readlines() a=file.readlines()
d=[] d=[]
for i in a: for i in a:
b=i.split() b=i.split()
sum=0 sum=0
for k in b[1:]: for k in b[1:]:
sum=sum+int(k) sum=sum+int(k)
......
悟空34800
诺依38000
小贝18200
李丽20100
宋扬10700
王明24500
李强16400
孙小白22200
苏琪13700
刘若若14700
刘阳22600
王胜男12300
王娇13100
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