Commit a50bc1a9 by BellCodeEditor

save project

parent a2b4c245
Showing with 3 additions and 2 deletions
# filel=open(r'C:\Users\makcoo\Desktop\book.txt','w',encoding='utf-8') # filel=open(r'C:\Users\makcoo\Desktop\book.txt','w',encoding='utf-8')
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
# filel.close() # filel.close()
with open (r'C:\Users\makcoo\Desktop\book.txt','r',encoding='utf-8') as filel: with open (r'C:\Users\makcoo\Desktop\book.txt','r',encoding='utf-8') as filel:
for data in filel: for data in filel:
if '试毒哥:9本' in data: if '山本大左:11本' in data:
print('数据在文件中') print('数据在文件中')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment