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

S.strip([chars])
ide


leading and trailing


example:spa


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

相關文章
相關標籤/搜索