python filter函数应用,过滤字符串
>>> candidate = 'dade142.;!0142f[.,]ad'>>> filter(str.isdigit, candidate) #保留数字'1420142'>>> filter(str.isalpha, candidate) #保留字母‘dadefad’>>> filter(str.isalnum, can