Commit a49bbc82 by BellCodeEditor

auto save

parent 762fe27a
Showing with 9 additions and 3 deletions
file=open(r'c:\Users\玛酷\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') file=open(r'c:\Users\玛酷\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')
a=file.read() a=file.readlines()
print(a) print(a)
file.close file.close()
\ No newline at end of file
for i in a:
data=i.split()
print(data)
\ 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