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

📅  最后修改于: 2022-03-11 14:45:29.784000             🧑  作者: 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