Commit 3ed4f3ba by BellCodeEditor

save project

parent 2c009031
Showing with 9 additions and 3 deletions
with open(r"C:\Users\Administrator\Desktop\sales_list.txt","r",encoding="utf-8")as filel: with open(r"C:\Users\Administrator\Desktop\sales_list.txt","r",encoding="utf-8")as filel:
a=filel.readlines() a=filel.readlines()
for i in a: for i in a:
w=i.split() w=i.split()
print(w[0]) # print(w[0])
print(w[1:]) # print(w[1:])
\ No newline at end of file e=0
for b in w[1:]:
e=e+int(b)
name=w[0]+str(e)
print(name)
\ 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