a = list(line[::-1]) b = list(set(a)) b.sort(key = a.index) c = b[1:] print(''.join(c))
点赞

相关推荐

牛客网
牛客企业服务