我有一个如下列表
mylist = [('value1', 'value2', 'value3'), ('secval1', 'secval2', 'secval3')]
如何查看列表中是否包含“ value2”?
用途any():
any()
any('value2' in sublist for sublist in mylist)