Python过滤

text = "A2A"
s = filter(lambda ch: ch in '0123456789', text)
print int(s)

posted @ 2017-06-03 19:42  413Xiaol  阅读(198)  评论(0编辑  收藏  举报