Commit d8f0fa0d by BellCodeEditor

save project

parent 7e3a2ff3
Showing with 17 additions and 0 deletions
a=open(r'C:/Users/Administrator/Desktop/ssssbbbb1.txt','a',encoding='utf')
a.write('ghghghghg\n')
a.write('ghghghg\n')
a.close()
with open(r'C:/Users/Administrator/Desktop/ssssbbbb1.txt','r',encoding='utf') as file1:
for data in file1:
if'ghghghghg' in data:
data=data.replace('NONONO')
if'ghghghg'in data:
data=data.replace('NONO')
new_data+=data()
with open(r'C:/Users/Administrator/Desktop/ssssbbbb1.txt','w',encoding='utf') as file1:
file1.write(nem_data)
with open(r'C:/Users/Administrator/Desktop/ssssbbbb1.txt','r',encoding='utf') as file1:
a=file1.read
print(a)
\ 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