用函数判断一个字符串shi'fou'we
def is_substring(sub, main):
return sub in main
substring = "world"
main_string = "hello world"
result = is_substring(substring, main_string)
print(result)
substring = "resle"
result = is_substring(substring, main_string)
print(result)