返回数字 - filter(str.isdigit, string) 返回字母 - filter(str.isalpha, string) 返回字母和数字 - filter(str.isalnum, string) 返回数字 - filter(str.isdigit, string) 返回字母 - filter(str.isalpha, string) 返回字母和数字 - filter(str.isalnum, string) Last modification:October 9, 2018 © Allow specification reprint Like If you think my article is useful to you, please feel free to appreciate