【发布时间】:2015-02-08 01:22:53
【问题描述】:
我正在使用 Python 来尝试检查字符串是否包含某些单词。它可以包含全部或部分单词。
listCall = ('Azura', 'Fly', 'yellow')
readME = 'the color is yellow'
if listCall in readME:
print 'we found certain words'
else:
print 'all good'
【问题讨论】:
-
抱歉把代码搞砸了
-
那是通向代码的链接
标签: python string list tuples operand