📌  相关文章
📜  python 在字符串中查找多个匹配项 - Python 代码示例

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

代码示例1
a_string = "A string is more than its parts!"
matches = ["more", "wholesome", "milk"]

if any(x in a_string for x in matches):