Commit a0908b58 by BellCodeEditor

save project

parent d1536a55
Showing with 14 additions and 0 deletions
num_list=[]
with open(r"C:\Users\Administrator\Documents\lesson13-5\sales_list.txt","a",encoding="utf-8") as files1:
text=files1.readlines()
print(text)
for text in files1:
date=text.split()
total=date[1:]
a=0
for num in total:
a+=int(num)+"/n"
print(num_list)
\ 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