python字符串 提取括号中的内容

返回值是一个列表

re.findall(r'[(](.*?)[)]', str1) 

 

posted on 2019-08-07 09:54  liujx2019  阅读(14692)  评论(0编辑  收藏  举报

导航