Commit eefb7e14 by BellCodeEditor

save project

parent 2e4a5057
Showing with 6 additions and 2 deletions
......@@ -3,6 +3,9 @@ with open(r"c:\Users\玛酷\Documents\lesson13_2\sales_list.txt","r",encoding="u
#print(a)
for i in a:
w=i.split()
print(w[1:])
#print(w[1:])
for s in w[1:]:
sum=sum+int(s)
r=w[0]+str(sum)
print(r)
\ 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