Commit 76eb3e04 by BellCodeEditor

save project

parent 11989a1a
Showing with 5 additions and 2 deletions
......@@ -2,6 +2,8 @@ a=open(r'c:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8')
b=a.readlines()
#print(b)
for i in b:
sum=0
data=i.split()
print(data[0])
print(data[1:])
for j in data[1:]:
sum=sum+int(j)
print(sum)
\ 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