🌈 搜索
📅  最后修改于: 2022-03-11 14:46:56.259000             🧑  作者: Mango
word = 'Hello' to_find = 'l' # in one line print([i for i, x in enumerate(word) if x == to_find])