题解 | #密码截取#
字符串字符匹配
http://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
count = 1
ipdict = {}
while True:
try:
ip = input()
ipdict[count] = ip
count += 1
except:
break
# print(ipdict)
i = 1
status = 0
while i < len(ipdict):
for a in ipdict[i]:
if a in ipdict[i+1]:
pass
else:
# print(a, ipdict[i + 1])
status = 1
if status == 1:
print("false")
status = 0
else:
print("true")
i += 2