文章
2022-05-17
来自:开发者社区
Python 过滤字母和数字
实例1crazystring = 'dade142.!0142f[., ]ad' # 只保留数字 new_crazy = filter(str.isdigit, crazystring) print(''.join(list(new_crazy))) # 只保留字母 new_crazy = filter(str.isalpha, crazystring) print(''.join(list(n....
本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。