例如:
a = ['1', '2', 3, 'hello', 'hell323', '12hello']
想要输出:
a = ['hello', 'hell323', '12hello']
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
python为您准备了一系列友好的办法,楼主此需可用isdigit过滤,楼上已有回答,不再重复。