Python, reverse some lines down to up -


i don't know how this:

a b c d e 1 b c d e 2 b c d e 3 ... b c d e n 

and need:

a b c d e n .... b c d e 3 b c d e 2 b c d e 1 

i tried like:

newcontent=codecs.encode(content,'utf_8','replace') in reversed(newcontent):     newcontent.append(i)     print newcontent 


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -