提取不重复的整数——python3解法
提取不重复的整数
http://www.nowcoder.com/questionTerminal/253986e66d114d378ae8de2e6c4577c1
num = input() res = '' n = len(num) for i in range(n-1,-1,-1): if num[i] not in res: res = res+num[i] print(res)
提取不重复的整数
http://www.nowcoder.com/questionTerminal/253986e66d114d378ae8de2e6c4577c1
num = input() res = '' n = len(num) for i in range(n-1,-1,-1): if num[i] not in res: res = res+num[i] print(res)
相关推荐