Commit 5b77697a by BellCodeEditor

save project

parent fae27975
Showing with 9 additions and 3 deletions
with open(r'C:\Users\86188\Desktop\sales_list.txt','r',encoding='utf-8') as file:
a=file.readlines()
for i in a:
114514=i.split()
print(114514[1:])
for i in a:
114514=i.split()
sum=0
for sales in 114514[1:]:
sum=sum+int(sales)
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