不会呀!!!
#!/usr/bin/env pythonimport jsonopenha = open(‘ha.proxy‘,‘r‘)openaddha = open(‘addha.proxy‘,‘w‘) i = openha.readlines()print(i)index2 = i.index(‘backend www.oldboy.org\n‘)num = index2 + 2print(num)for wun in i: a = wun print(a) i.insert(num,‘\t\tabcdefghijklmn‘) for lll in i: openaddha.write(lll) openha.close()openaddha.close()
时间: 2024-12-24 11:44:21