#取字符串中两个符号之间的东东 def txt_wrap_by(self,start_str, end, html): start = html.find(start_str) if start >= 0: start += len(start_str) end = html.find(end, start) if end >= 0: return html[start:end].strip() #调用 newsDate=self.txt_wrap_by("[","]",liCon)
时间: 2024-10-06 18:05:41