📅  最后修改于: 2022-03-11 14:45:47.352000             🧑  作者: Mango
代码示例1
s = 'Apples are totally awesome'
l = [idx for idx, item in enumerate(s.lower()) if 'a' in item]
print(l)
#output: [0, 7, 14, 19]