Commit 5f921be7 by BellCodeEditor

save project

parent e93cdee6
++ "b/C:\\Users\\liuguangyun\\Library\\Containers\\com.microsoft.Word\\Data\\Desktop\\book.docx"
with open(r'/Users/liuguangyun/Library/Containers/com.microsoft.Word/Data/Desktop/bok.docx','a',encoding='utf-8') as file:
file.write('xiaolan 12 \n')
file.write('ciaoli 11 \n')
file.write('liwen 9 \n')
file.write('zhangwei 16 \n')
file.open()
# file1=open(r'C:\Users\liuguangyun\Library\Containers\com.microsoft.Word\Data\Desktop\book.docx','w',encoding='utf-8')
# file1.write('小兰:12本 \n')
# file1.write('小丽:11本 \n')
# file1.write('李文:9本 \n')
# file1.write('张伟:16本 \n')
# file1.close()
with open (r'C:\Users\liuguangyun\Library\Containers\com.microsoft.Word\Data\Desktop\book.docx','w',encoding='utf-8') as file:
for i in file:
if '小丽:11本' in i:
print('I found it')
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