Python过滤

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

原文地址:https://www.cnblogs.com/413xiaol/p/6938254.html