$(filter pattern-,text) Returns all whitespace-separated words in text that do match any of the pattern words, removing any words that do not match. The patterns are written using '%', just like the patterns used in the patsubst function above. The f
strip函数:$(strip text) 函数功能:去除字符串空格函数 示例: STR = a b c LOSTR = $(strip $(STR)) #结果是"a b c". -------------------------------------------------------------------------------------------------------------------------------------------
filter函数:遍历序列中的每个元素,判断每个元素得到布尔值,如果是True则留下 # 例子:条件筛选 name =['m_xiaoli','zhangfei','m_xiaoma','m_wangyun'] ret = [] def test(name): for i in name: if not i.startswith("m"): ret.append(i) return ret print(test(name)) ['zhangfei'] def test1(array):