while True: try: a = input() a = list(a) b = input() b = list(b) c = [] for i in a: #去掉key中的重复 if(i not in c): c.append(i) for i in range(ord('a'),ord('z') + 1): #a~z的顺序,若是c中没有就加到后面去 ord()为转化为ascll,chr()为还原为字符 ...