题解 | 提取不重复的整数
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
a = input()[::-1] num_list = [] for i in a: if i not in num_list: num_list.append(i) print(''.join(str(i) for i in list(map(int,num_list))))
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
a = input()[::-1] num_list = [] for i in a: if i not in num_list: num_list.append(i) print(''.join(str(i) for i in list(map(int,num_list))))
相关推荐