Commit ded2908e by BellCodeEditor

save project

parent 0c585843
Showing with 5 additions and 0 deletions
...@@ -5,3 +5,7 @@ file.write("小丽:11本",'\n') ...@@ -5,3 +5,7 @@ file.write("小丽:11本",'\n')
file.write("李文:9本",'\n') file.write("李文:9本",'\n')
file.write("张伟:16本") file.write("张伟:16本")
file.close() file.close()
with open(r"C:\Users\Administrator\Desktop\新建 Microsoft Word 文档.doc ",'r',encoding='utf-8') as file:
for data in file:
if "小兰:12本" in data:
print("yes")
\ 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