Python - Ngrams like but not only sticked occurences

前端 未结 0 1893
庸人自扰
庸人自扰 2020-12-19 10:58

I would like to see all potential combination for word in a list. ie:

input = [\'a\',\'b\',\'c\']
output = [\'a b\', \'b a\', \'a c\', \'c a\', \'b c\', \'c b         


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