题解 | #字符串字符匹配#
字符串字符匹配
https://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
def fun(s1:str, s2:str):
for i in s1:
if i not in s2:
return 'false'
return 'true'
print(fun(input(),input()))
字符串字符匹配
https://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
def fun(s1:str, s2:str):
for i in s1:
if i not in s2:
return 'false'
return 'true'
print(fun(input(),input()))
相关推荐