题解 | #提取不重复的整数#
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
try:
s = input().strip()
s = s[::-1] # 反转,也可以用reversed()
li = []
for i in s:
if i not in li:
li.append(i)
print("".join(li))
except Exception as e:
pass
s = input().strip()
s = s[::-1] # 反转,也可以用reversed()
li = []
for i in s:
if i not in li:
li.append(i)
print("".join(li))
except Exception as e:
pass