9 lines
281 B
Python
9 lines
281 B
Python
import codecs
|
|
file_path = r'd:\\骅锋\\mall\\pages.json'
|
|
with codecs.open(file_path, 'r', 'utf-8') as f:
|
|
text = f.read()
|
|
|
|
text = text.replace('custom\"\n }\n }\n },', 'custom\"\n }\n },')
|
|
with codecs.open(file_path, 'w', 'utf-8') as f:
|
|
f.write(text)
|