Commit 4e83d157 by BellCodeEditor

save project

parent 50950579
Showing with 11 additions and 4 deletions
......@@ -6,6 +6,13 @@
# qqq.write('张伟:16本\n')
# qqq.close()
with open(r'C:\Users\23636\Desktop\book.txt','a',encoding='utf-8') as qqq:
qqq.write('小强:12本\n')
qqq.write('李明:15本\n')
\ No newline at end of file
# with open(r'C:\Users\23636\Desktop\book.txt','a',encoding='utf-8') as qqq:
# qqq.write('小强:12本\n')
# qqq.write('李明:15本\n')
with open(r'C:\Users\23636\Desktop\book.txt','r',encoding='utf-8') as qqq:
for i in qqq:
if '小兰:12本' in i:
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