Python 2.7: Convert one line into lines of 260 characters and remove all character before '_' in each line -


i must convert infile lines of 260 characters , remove content before (including character) '_'

i have been looking around hours , found way convert 260 characters.

lines = infile.readlines() [line[i:i+n] in lines(0, len(line), 640)] 

and found lot of examples wrt removing characters string or characters after argument.

please me out here...

lines = infile.readlines() [line[i:i+n] in lines(0, len(line), 640)] line.split("_")[1] 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -