filtering list是增强型的mapping list >>> import types >>> list [1, 2, 3, 'kk'] >>> l = [ i*2 for i in list if type(i) == types.IntType ] >>> l [2, 4, 6] >>>