题解 | #字符串字符匹配#
字符串字符匹配
https://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
import sys while True: try: s1 = input().strip() s2 = input().strip() s1 = list(set(s1)) s2 = list(set(s2)) ans = 0 for i in s1: if i in s2: ans += 1 if ans == len(s1): print('true') else: print('false') except: break