From c9ffe93dd3635213b982e3aa81843fc3241e1a2d Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Wed, 20 Jul 2022 10:20:59 +0800 Subject: [PATCH] save project --- diy.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/diy.py b/diy.py index 9041a69..ae0df5c 100644 --- a/diy.py +++ b/diy.py @@ -1,5 +1,8 @@ -with open(r'C:\Users\HP\Desktop\saleslist,txt',encoding='utf-8')as file: +with open(r'c:\Users\HP\Documents\lesson13-4\sales_list.txt','r',encoding='utf-8')as file: a=file.readlines() print(a) - \ No newline at end of file + +for i in a: + data=i.split() + print(data) \ No newline at end of file -- libgit2 0.25.0