萌新问一下Python3 一直报to short if name=='main':
n=int(input()) x=[] for i in range(n): x.append(input()) t=input() res=[] for i in x: if len(i)>=len(t) and i[:len(t)]==t: res.append(i) res=sorted(res) for i in res: print(i)