题解 | #字符串字符匹配#
字符串字符匹配
http://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
请问各位兄弟姐妹这应该如何简化呀
a=set(input())
b=input()
c=0
for i in a:
if i in b:
c+=1
if c==len(a):
print('true')
else:
print('false')
字符串字符匹配
http://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
请问各位兄弟姐妹这应该如何简化呀
a=set(input())
b=input()
c=0
for i in a:
if i in b:
c+=1
if c==len(a):
print('true')
else:
print('false')
相关推荐