题解 | #提取不重复的整数#
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
import re num_str = input() num_str = num_str[::-1] res = [] for c in num_str: if c not in res: res.append(c) print(c, end="")
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
import re num_str = input() num_str = num_str[::-1] res = [] for c in num_str: if c not in res: res.append(c) print(c, end="")
相关推荐