问答题

已知x = [1, 2, 4, 3, 4],那么表达式[index for index, value in enumerate(x) if value==4]的值是____

答案: [2,4]
微信扫码免费搜题