直接诶上代码 Python复制s = [int(i) for i in input().split(' ')] s.sort(); str = input() for i in str[0:3]: print(s[ord(i)-ord('A')],end=' ')