题解 | #字符串字符匹配# for(if) else语句
字符串字符匹配
https://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
while 1:
try:
s1=input()
s2=input()
for i in s1:
if i not in s2:
print('false')
break
else:
print('true')
# 一旦有i不在s2中,输出false并跳出循环;如果都在s2中(没有执行if not in语句),则执行else语句。
except:
break


联想公司福利 1500人发布