How to combine the same elements of a list in python in order?

前端 未结 0 604
北荒
北荒 2020-12-19 06:00

This is my list: n = [\'b\', \'b\', \'a\', \'b\', \'b\', \'b\', \'a\', \'a\', \'a\', \'a\']

I want to combine the same elements wich are together, and if they are not

相关标签:
回答
  • 消灭零回复
提交回复
热议问题