题解 | #提取不重复的整数#
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
# 用字符串来进行判断 num = input() num_unique = [] n = len(num) while n > 0: if num[n-1] not in num_unique: num_unique.append(num[n-1]) n -= 1 new_num = ''.join(num_unique) print(int(new_num))