結果 : how to remove consecutive duplicates in string in python