Commit cf1c061a by BellCodeEditor

save project

parent cbcd6ba1
Showing with 25 additions and 0 deletions
# lll.write("小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本")
# lll.close()
#with open(r"C:/Users/Administrator/Desktop/jj.txt","a",encoding="utf-8") as file:
#file.write("小兰:12本\n")
with open (r"C:/Users/Administrator/Desktop/jj.txt","r",encoding="utf-8") as file:
for i in file:
if "小兰" in i:
print("uj")
data_all = ""
with open (r"C:/Users/Administrator/Desktop/jj.txt","r",encoding="utf-8") as file:
for i in file:
if "小兰" in i:
i= i.replace("10","11")
data_all = data_all+
with open (r"C:/Users/Administrator/Desktop/jj.txt","w",encoding="utf-8") as file:
for.write(data_all)
data_all = ""
with open (r"C:/Users/Administrator/Desktop/jj.txt","r",encoding="utf-8") as file:
for i in file:
if "小兰" in i:
i= i.replace("10","11")
data_all = data_all+i
with open (r"C:/Users/Administrator/Desktop/jj.txt","w",encoding="utf-8") as file:
file.write(data_all)
\ 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