re.sub("</div>$", "", inDbCommentInfo)
re.sub("^</div>", "", inDbCommentInfo)
split 还是叫什么来着, 原理不同,不能用来截取字符串
re.sub("</div>$", "", inDbCommentInfo)
re.sub("^</div>", "", inDbCommentInfo)
split 还是叫什么来着, 原理不同,不能用来截取字符串
本文标题:python3 字符串尾部或头部删除
本文链接:https://www.haomeiwen.com/subject/pmpzgktx.html
网友评论