解题思路:通过字符串匹配,先不改变输入字符类型,通过下标索引图书库中编码最后长度为需求者图书编码的子串进行判断 nbooks,nreaders=list(map(int,input().split())) booklist = [] readlist = [] for i in range(nbooks): booklist.append(input()) #字符串形式图书编码 booklist = sorted(booklist) for j in range(nreaders): codelen,code = list(input().split()) readli...