I need to alter the text in the multiple svg files please help me out from this.
for filename in os.listdir(dirname):
filename = dirname+filename
#print(filename)
#for filename in pprint(dirlist):
if filename.endswith(".svg"):
with open(filename) as f:
data = f.read()
data = data.replace('NS', 'NSSS')
f.close()
f = open(/files/file.svg "wt")
f.write(data)
f.close()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…