Commit 36d26f3f by BellCodeEditor

save project

parent 98e39242
Showing with 2 additions and 1 deletions
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
with open(r'C:\Users\Administrator\Desktop\book.txt','a',encoding='utf-8')as txx: with open(r'C:\Users\Administrator\Desktop\book.txt','a',encoding='utf-8')as txx:
txx.write('小强:12本\n') txx.write('小强:12本\n')
txx.write('李明:11本\n') txx.write('李明:11本\n')
for i in range(): for i in txx:
if'小强:10本'in i: if'小强:10本'in i:
print('数据在文件中') 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