From 89884609b2199f6f6d057acae79b8b0c78c25552 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 9 Mar 2024 19:27:26 +0800 Subject: [PATCH] save project --- diy.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 diy.py diff --git a/diy.py b/diy.py new file mode 100644 index 0000000..eae2bca --- /dev/null +++ b/diy.py @@ -0,0 +1,12 @@ +#with open(r'C:\Users\David\Desktop\捐赠明细.txt','r',encoding='utf-8')as file1: + #file1.write('牢大:12本\n') + #file1.write('蔡徐坤:11本\n') + #file1.write('敲离蛙:9本\n') + #file1.write('SuperBoy:16本\n') + #file1.write('我嘞个骚缸:13本\n') + #a=file1.read() + #print(a) +with open(r'C:\Users\David\Desktop\捐赠明细.txt','r',encoding='utf-8')as file1: + for data in file1: + if'我嘞个骚缸:13本'in data: + print('数据在文件中') \ No newline at end of file -- libgit2 0.25.0