我想提取字符串中包含的所有数字。我不能使用正则表达式,还有其他方法吗?
例子:
minput = "BLP45PP32AMPY"
结果:
4532
python string
python ×1
string ×1