Commit a324d599 by BellCodeEditor

auto save

parent 011b357d
Showing with 10 additions and 0 deletions
with open(r'c:\Users\tang\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as file1:
a=file1.readlines()
for i in a:
print(i)
\ No newline at end of file
...@@ -18,6 +18,11 @@ with open(r'c:\Users\tang\Documents\lesson13-1\sales_list.txt','r',encoding='utf ...@@ -18,6 +18,11 @@ with open(r'c:\Users\tang\Documents\lesson13-1\sales_list.txt','r',encoding='utf
# # for i in a: #for循环吧每一行的数据遍历 # # for i in a: #for循环吧每一行的数据遍历
# # data = i.split() #把字符串切割成更细的小字符串 # # data = i.split() #把字符串切割成更细的小字符串
# # # print(data[1:]) #打印出所需数据 # # # print(data[1:]) #打印出所需数据
......
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