如何在 python 中编写表达式来检查字符串是否包含提供的任何字符串。像这样的东西:
s = 'winter summer spring fall'
# i like fall and spring
i_like = 'fall', 'spring' in s
如何在 python 中编写表达式来检查字符串是否包含提供的任何字符串。像这样的东西:
s = 'winter summer spring fall'
# i like fall and spring
i_like = 'fall', 'spring' in s