Commit 7c64a79a by BellCodeEditor

save project

parent a8d02629
Showing with 14 additions and 0 deletions
with open(r"C:\Users\86185\Desktop\book.txt",'r',encoding='UTF-16') as f:
b=input("请输入要查询的人:")
h=""
for i in f:
if b in i:
g=i
print("找到了")
q=input("请输入想修改成的值:")
i=q+"\n"
h+=i
with open(r"C:\Users\86185\Desktop\book.txt",'w',encoding='UTF-16') as f:
f.write(h)
# replace
\ 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