解题思路:
注意事项:谁看得出来下面的数据有什么区别?
测试数据:
1.
abc
dddncabca
2.
abc
dddncabca
参考代码:
s1 = "".join(input().split()) s2 = input() if s1 in s2: print(f"{s1} is substring of {s2}") elif s2 in s1: print(f"{s2} is substring of {s1}") else: print("No substring")
0.0分
0 人评分