Commit b06d8a8e by BellCodeEditor

save project

parent 5772b860
Showing with 5 additions and 4 deletions
with open(r'c:\Users\lenovo\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')
ass=file.readlines()
file.close()
ass=file.readlines()
for i in ass:
datalist=i
\ No newline at end of file
datalist=i.split()
print(datalist[0])
print(datalist[1])
\ 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