Commit 3fe3ae44 by BellCodeEditor

save project

parent 0d5e1003
Showing with 7 additions and 1 deletions
with open(r'c:\Users\l\Desktop\sales_list.txt',"r",encoding='utf-8') as file:
data=file.readlines()
for i in data:
print(i)
newdata=i.split()
print(newdata[0])
print(newdata[1:])
\ No newline at end of file
This diff is collapsed. Click to expand it.
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