Commit 9fd56c0e by BellCodeEditor

save project

parent 2549c8f3
Showing with 6 additions and 4 deletions
......@@ -5,6 +5,8 @@ filk.write("小丽:11本\n")
filk.write("李文:9本\n")
filk.write("张伟:16本\n")
filk.close()
with open("C:\\Program Files (x86)\\111222333\\fxf.txt","a",encoding="utf-8 "as filk1)
filk.write("liming:12本\n")
filk.write("xiaoqiang:11本\n")
\ No newline at end of file
with open("C:\\Program Files (x86)\\111222333\\fxf.txt","r",encoding="utf-8 ")as filk:
k=filk.read()
if "张伟:16本" in k:
print("have")
\ 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