📌  相关文章
📜  在给定字符串中查找多个子字符串的函数 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:24.638000             🧑  作者: Mango

代码示例1
matches = ["more", "wholesome", "milk"]
a_string = "A string is more than its parts! milk, wholesome"
if any(x not in a_string for x in matches):
   print "missing"