📜  python 字符串包含子字符串 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:33.775000             🧑  作者: Mango

代码示例6
def find_string(string,sub_string):
    return string.find(sub_string)
#.find() also accounts for multiple occurence of the substring in the given string