题解 | #提取不重复的整数#
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
while True: try: s = input() s1 = "".join(reversed(s)) res = '' for i in s1: if i not in res: res += "".join(i) print(res) except: break
Python刷华为机考题 文章被收录于专栏
无聊刷刷!