Commit 04535a1a by BellCodeEditor

save project

parent ded2908e
Showing with 4 additions and 2 deletions
...@@ -8,4 +8,6 @@ file.close() ...@@ -8,4 +8,6 @@ file.close()
with open(r"C:\Users\Administrator\Desktop\新建 Microsoft Word 文档.doc ",'r',encoding='utf-8') as file: with open(r"C:\Users\Administrator\Desktop\新建 Microsoft Word 文档.doc ",'r',encoding='utf-8') as file:
for data in file: for data in file:
if "小兰:12本" in data: if "小兰:12本" in data:
print("yes") print("yes")
\ No newline at end of file else:
print("no")
\ 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