📅  最后修改于: 2022-03-11 14:46:56.476000             🧑  作者: Mango
def index_containing_substring(the_list, substring):
for i, s in enumerate(the_list):
if substring in s:
return i
return -1