今日开始学习Python爬虫技术
import retest_string = "我是一个中国人。在学习爬虫。爬虫非常有趣。"regex = "爬虫"p_string = test_string.split("。")for line in p_string: if re.search(regex,line) is not None: print(line)
print(p_string)