我有以下内容string:
string
s = 'sd sdasd sas sas zxxx df xx de '
当我使用时, s.strip('x')我得到以下结果:
s.strip('x')
'sd sdasd sas sas zxxx df xx de '
为什么strip()不删除所有'x'字符?
strip()
'x'
python strip
python ×1
strip ×1