如图 同时提及两个的文章数统计 如何循环谢谢
li1=['123','234','34521'] char1 = '1' char2 = '2' i1=len([x for x in li1 if char1 in x and char2 in x]) print(i1)