题解 | #质数因子#
提取不重复的整数
http://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
innu = input()
if(int(innu)%10 == 0 ):
print(innu)
else:
# dic = {}
arr = []
out_number = ""
in_number = int(innu)
for i in range(len(str(innu))):
value =in_number%10
if(value not in arr):
out_number += str(int(value))
arr.append(value)
in_number = ((in_number-value)/10)
print(out_number)
#各种变量的数据类型换的好苦
if(int(innu)%10 == 0 ):
print(innu)
else:
# dic = {}
arr = []
out_number = ""
in_number = int(innu)
for i in range(len(str(innu))):
value =in_number%10
if(value not in arr):
out_number += str(int(value))
arr.append(value)
in_number = ((in_number-value)/10)
print(out_number)
#各种变量的数据类型换的好苦