Python正则运算符优先级re.findall('(.)*',"abc")、re.findall('(.*)',"abc")、re.findall('(.?)*',"abc")的执行结果的影响分析
我们分别执行三个语句:>>> re.findall('(.)*',"abc") ['c', '']>>> re.findall('(.*)',"abc")['abc', '']>>> re.findall('(.?)*',"abc") ['', '']>>&