Python方法简单,c++类同 >>> a = 'what is your name' >>> b ='is' >>> result = b in a >>> result #结果为真,存在,结果为假 不存在 True#存在 >>>