re=search("life is (.+?) python",s) r. group(0)输出的是life... python 全部 r. group(1)输出中间的括号内容 效果等同于re. findall()