How can I easily check in Python that all items in one list are included in the other list?

前端 未结 0 635
余生分开走
余生分开走 2021-01-21 00:04

I found some solutions, but none of them are what I need.

For example:

list1 = [\'a\', \'b\', \'c\']
list2 = [\'a\', \'a\', \'b\', \'c\']

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