python去除字符串里的非数字

 filter(lambda ch: ch in ‘0123456789.’, crazystring) 

原文地址:https://www.cnblogs.com/slqt/p/9817668.html