题解 | #字符串字符匹配#
字符串字符匹配
http://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
写个判断函数,只要短的字符串中某个字母没在长的字符串中,则返回‘false’
def judge(s1,s2):
for i in s1:
if not i in s2:
return 'false'
return 'true'
while 1:
try:
print(judge(input(),input()))
except:
break