Commit f6ee0197 by BellCodeEditor

save project

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