Commit 0e12d5eb by BellCodeEditor

auto save

parent 8a7c4cac
Showing with 3 additions and 2 deletions
......@@ -2,9 +2,9 @@
q=''
with open(r"C:\Users\Administrator\Desktop\qq.txt",'r',encoding='utf-8') as file:
for i in file:
if 'xxsxsxs' in i:
if '4567' in i:
#
i=i.replace('xxsxsxs','4567')
i=i.replace('4567','sb')
q+=i
with open(r"C:\Users\Administrator\Desktop\qq.txt",'w',encoding='utf-8') as file:
file.write(q)
\ 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