problem description
python3 environment. Problems encountered in using the strip () method
Why is there a cutting error
>>> s = "https://img.codeshelper.com/upload/img/2021/04/07/ceadsmhi1ox15763.jpg"
>>> s.lstrip("http://img.17dm.com/juren/manhua/")
""
>>> s.lstrip("http://img.17dm.com/juren/")
"anhua/1/1.jpg"
>>> s.lstrip("http://img.17dm.com/")
"juren/manhua/1/1.jpg"
>>> s.lstrip("http://img.17dm.com/").lstrip("juren/manhua")
"1/1.jpg"