1.filter滤波器函数定义一个数组,需求:过滤出带ii的字符串 arr=['dsdsdii','qqwe','pppdiimmm','sdsa','sshucsii','iisdsa'] def filter_ii(n): return 'ii' in n def filter_test(func,array): ret=[] for i in array: if not func(i):#注意内置函数没有not ret.append(i) return ret print(list(fil…