操作

# indexOf
[1, 2, 3].index(2)	# 1

# find
next((x for x in [1, 2, 3] if x == 2), None)	# 2

# find multi
list(filter(lambda x: x==2,  [1, 2, 3])) # [2]

# contains
2 in [1, 2, 3] # True

# all 
all(x < 10 for x in [1, 2, 3])	# True

# any
any(x < 2 for x in [1, 2, 3])	 # True

# filter
[x for x in [1, 2, 3] if x % 2 != 0]	# [1, 3]	
list(filter(lambda x: x % 2 != 0, [1,2,3])) # [1, 3]	

# map
[x+1 for x in [1, 2, 3]]	# [2, 3, 4]	
list(map(lambda x: x + 1, [1,2,3]) # [2, 3, 4]	

# uniq
list(set([1, 2, 3, 2, 1]))	# [1, 2, 3]	

# diff
[x for x in [1, 2, 3, 4, 5] if x not in list(set([5, 2, 10]))]	# [1, 3, 4]	

# zip
list(zip([1, 2], ["a", "b"], [True, False]))	# [(1, 'a', True), (2, 'b', False)]