Commit 2f9cb0b1 by BellCodeEditor

save project

parent bdac02e4
Showing with 8 additions and 2 deletions
...@@ -3,5 +3,10 @@ with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco ...@@ -3,5 +3,10 @@ with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',enco
#print(lsls[3:5]) #print(lsls[3:5])
for i in a: for i in a:
b = i.split() c=i.split()
print(b[1:]) b=i.split()
sun=0
for d in c[1:]:
sun=sun+int(d)
sunname=c[0]+str(sun)
print(sunname)
\ 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