我有以下列表:[[('a','b','c')],[('d','e','f')]]
,我想提取以下输出:['b','e']
我该怎么做?
r1 = [re.findall("(\d+\/\d+\/\d+)(,)(\s)(\d+:\d+)(\s)(\w+)(\s)(-)", x) for x in linebyline]
r2 = [re.findall("(\d+\/\d+\/\d+)(,)(\s)(\d+:\d+)(\s)(\w+)(\s)(-)(\s\w+)", x) for x in linebyline]
我想从r1
中删除r2
。 r1
具有上面第一行中所述的形式。