Commit 6e638161 by BellCodeEditor

auto save

parent 3dfabc65
Showing with 5 additions and 3 deletions
with open(r'c:\Users\yd\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as f1: with open(r'c:\Users\yd\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as f1:
for i in f1: data1 = f1.readlines()
print(i) for i in data1:
\ No newline at end of file data2 = i.split()
print(data2[0],data2[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