From 51774719ef1fa815cde4cf7015b1d2f50fc68f63 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 24 Apr 2021 15:09:46 +0800 Subject: [PATCH] save project --- diy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/diy.py b/diy.py index e3002ae..103ae52 100644 --- a/diy.py +++ b/diy.py @@ -1,5 +1,6 @@ with open(r"c:\Users\丽达玛酷12号\Documents\lesson13-1\sales_list.txt","r",encoding="utf-8") as file: a=file.readlines() +asdfg=[] for i in a: a=i.split() sum=0 @@ -7,4 +8,5 @@ for i in a: for sls in a[1:]: sum=sum+int(sls) n=a[0]+str(sum) - print(n) \ No newline at end of file + print(n) + asdfg.append() \ No newline at end of file -- libgit2 0.25.0