From a5e5c9eec97c4db891a8ac6f59bffe846a2e028a Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 3 Jun 2023 17:10:30 +0800 Subject: [PATCH] save project --- diy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diy.py b/diy.py index 21862a4..68d7770 100644 --- a/diy.py +++ b/diy.py @@ -4,6 +4,6 @@ with open('sales_list.txt','r',encoding='utf-8')as file: data=i.split(" ") sum=0 for num in data[1:]: - if num not - print(num) + if num not in {'\n',' ',''}: + print(data[0]+str(sum)) file.close() \ No newline at end of file -- libgit2 0.25.0