如何从第二个位置有“I”的列表中找到单词?[Python]

2024-04-26 10:50:56 发布

您现在位置:Python中文网/ 问答频道 /正文

在Python中,如何从第二个位置带有“I”的列表中查找单词

example_list = ['one','two','three','four','five','six','seven']

我想找到所有在第二个位置有“I”的单词

the output should look like this: ['five','six']

可能吗