Commit a20ec339 by BellCodeEditor

auto save

parent 58b84e51
Showing with 1 additions and 3 deletions
...@@ -5,6 +5,4 @@ with open (r"C:\Users\win10\Documents\lesson13-1\sales_list.txt","r",encoding='U ...@@ -5,6 +5,4 @@ with open (r"C:\Users\win10\Documents\lesson13-1\sales_list.txt","r",encoding='U
p=i.split() p=i.split()
for o in p[1: ]: for o in p[1: ]:
u=u+int(o) u=u+int(o)
with open(r"C:\Users\win10\Documents\lesson13-1\sales_list.txt","w",encoding='UTF-8') as file: print(p[0]+str(u))
file.write(p[0]+str(u)
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