python-字符串处理-去除首尾特定字符

S.strip([chars])
ide


leading and trailing


example:spa


my_str = '(d)d(d)))'        ->       'd)d(d'ip

相关文章
相关标签/搜索