join ([lst[i] for i in [0, 2, 4]]) . The list comprehension statement creates a list consisting of elements lst[0] , lst[2] , and lst[4] ...
確定! 回上一頁