我可以删除数字,但不能删除字母字符:
>>> text '132abcd13232111' >>> text.strip('123') 'abcd'
为什么以下不起作用?
>>> text.strip('abcd') '132abcd13232111'
python string python-3.x
python ×1
python-3.x ×1
string ×1