Commit 5f5630ec by BellCodeEditor

save project

parent f34106aa
Showing with 4 additions and 4 deletions
......@@ -7,8 +7,8 @@ with open(r'C:\Users\Administrator\Desktop\test.txt',a',encoding='utf-8' ) as fi
file.write("小兰:12本")
file.write("小明:1000000000000本")
with open(r'C:\Users\Administrator\Desktop\test.txt',r',encoding='utf-8' ) as file:
for data in file:
if "小兰:12本" in data:
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