如果它们都以“ http”开头,则可以使用http作为分隔符来分割它们,否则可以执行两个步骤:首先使用空格或http作为firstSplit = line4.split('',1)从字符串中提取第一个url。firstString= firstSplit.pop(0) -> pop the first urlsecondSplit =firstSplit.join() -> join the restsecondSplit[-1].split('lemon#gloss') ->splits the remaining two