Commit c73c056a by BellCodeEditor

save project

parent d1cca3e6
Showing with 4 additions and 2 deletions
......@@ -2,5 +2,7 @@
#fh=open('c:\\Users\\Administrator\\Desktop\\test.txt','w',encoding='utf-8')
#fh.write('小兰:12本''\n'+'小丽:11本''\n'+'李文:9本''\n'+'张伟:16本'+'\n')
#fh.close()
with open('c:\\Users\\Administrator\\Desktop\\test.txt','a',encoding='utf-8') as sad:
sad.write('小刘:12本')
with open('C:\\Users\\admini\\Desktop\\book.txt', 'r',encoding="utf-8" )as ff1:
for d in ff1:
if'小兰:12本'in d:
print('在')
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