题解 | #字符串字符匹配#
字符串字符匹配
https://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
short=input() lon=input() short=set(short)#短字符串去重 l=[] for i in short: if i in lon: l.append(i)#如果短字符串的字符在长的里,加入列表 if len(l)==len(short):#判断列表和去重短字符串长度 print("true") else: print("false")