Commit 3b9769c3 by BellCodeEditor

auto save

parent 8f80ff91
Showing with 5 additions and 2 deletions
......@@ -2,6 +2,9 @@ with open(r'C:\Users\CHINGHUDOF\Desktop\sales_list.txt','r',encoding='utf-8') as
a=filel.readlines()
for i in a:
www=i.split()
print(www[1:])
sum=0
for seles in www[1:]:
sum=sum+int(seles)
result=www[0]+str(sum)
print(result)
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