Commit 5448bb8a by BellCodeEditor

save project

parent 5ec53ebb
Showing with 15 additions and 0 deletions
with open(r'c:\Users\Administrator.DESKTOP-5PGRF5T\Desktop\sales_list.txt',encoding='utf-8') as f:
a=f.readlines()
# print(a)
for i in a:
# print(i)
xxx=i.split()
# print(xxx)
#print(xxx[1:])
b=0
for v in xxx[1:]:
b=b+int(v)
w=xxx[0]+str(b)
print(w)
\ 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