python 2.7 - How to use python2.7 to remove first five words from a line? -


for example, if have following line:

"i want remove first 5 words , not know how that."

and want change line :

"five words , not know how that."

i wondering if there built-in function me , thanks!

a = "i want remove first 5 words , not know how that." print ' '.join(a.split()[5:]) 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -