2016-06-21 129 views

回答

0

試試這個,

import re 
parathesis_check = re.compile(r'[(]\w+[)]') 
parathesis_check.findall('avg(time)') 

結果

['(time)'] 

Demo