Python - Deleting the first 2 lines of a string

前端 未结 6 1782
渐次进展
渐次进展 2021-02-07 00:39

I\'ve searched many threads here on removing the first two lines of a string but I can\'t seem to get it to work with every solution I\'ve tried.

Here is what my string

6条回答
  •  梦毁少年i
    2021-02-07 01:32

    I don't know what your end character is, but what about something like

    postString = inputString.split("\n",2)[2]
    

    The end character might need to be escaped, but that is what I would start with.

提交回复
热议问题