How do you check if each character of a list is in a string?

前端 未结 0 1743
情书的邮戳
情书的邮戳 2021-01-24 09:11

How do you check if each character of a list is in a string? For example, how would I check if each character of the list [\'h\',\'e\',\'l\',\'p\'] is in string \'abcdhfeigjklmo

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