strip remove '_' unexpectedly

Viewed 1038
>>> x = 'abc_cde_fgh'
>>> x.strip('abc_cde')
'fgh'

_fgh is expected.

How to understard this result?

3 Answers
Related