diff --git a/good.py b/good.py index e69de29..126b3d6 100644 --- a/good.py +++ b/good.py @@ -0,0 +1,4 @@ +with open(r'C:\Users\mkjqr\Desktop\python.txt','r',encoding='utf-8') as a: + for data in a : + if '上帝,1个银河系' in data : + print('数据在文件中') \ No newline at end of file