输入两个字符串,打印两个字符串中公共的字符,如果没有公共字符打印 公共字符不存在
例如:字符串1为 abc123 , 字符串2为 huak3 , 打印 a3
str_1 = input()
str_2 = input()
strs = {}
flag = 0
for s in str_1:
strs[s] = 0
for s in str_2:
try:
if strs[s] == 0:
strs[s] = 1
except:
continue
for key in strs:
if strs[key] == 1:
flag = 1
print(key, end='')
if flag == 0:
print('不存在')