Commit e6fbab52 by BellCodeEditor

auto save

parent cfb47f1e
Showing with 11 additions and 0 deletions
with open(r"C:\Users\admin\Desktop\111222.txt",'w',encoding='utf-8') as nb:
nb.write('sb')
xin_nb=''
with open(r"C:\Users\admin\Desktop\111222.txt",'r',encoding='utf-8') as nb:
for i in nb:
if 'sb' in nb:
nb=nb.replace('sb','fw')
xin_nb += nb
with open(r"C:\Users\admin\Desktop\111222.txt",'w',encoding='utf-8') as nb:
nb.write(xin_nb)
\ 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