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
Post a Comment