题解 | #字符串字符匹配#
字符串字符匹配
https://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
short_string = input() long_string = input() count = 0 # 表示短字符在长字符中出现的次数 for a in short_string: if a in long_string: count += 1 if count == len(short_string): print("true") else: print("false")