a = filter(函数名,序列) 返回一个迭代器对象/.函数里必须加过滤条件 ret = ['a','b','c','d','e'] def ft(s): if s != 'a': return s rat = filter(ft,ret)print(rat)############## map(函数名,序列) 函数里必须是进行拼接.ret = ['a','b','c','d','e'] def ft(s): return s + 'alvin' rat = filter(ft,ret)pr…