在Python中,以下是给定上下文的语句语法:
words = 'blue yellow'
如果有一个if语句,用来检查words
是否包含单词"blue",应该怎么写呢?例如:
if words ??? 'blue':
print 'yes'
elif words ??? 'blue':
print 'no'
如果文本中包含“蓝色”,则输出“是”。否则,输出“否”。
words
中包含"blue" - Ashwini Chaudhary