字符串
字符串是否包含子字符串
两种方法:[find()] [in]/[not in]
// 方法一
if string1.find(string2):
print("found string2 in string1")
// 方法二
if string2 in string1:
print("found string2 in string1")
标签:基本,python,语法,print,字符串,found,string2,string1
From: https://www.cnblogs.com/mymxt/p/17143236.html