import os def int2set(array):      out1 = []     out2 = ""     for i in range(len(array)):         if array[i] not in out1:             out1.append(array[i])           for i in range(len(out1)-1 , -1 , -1):         if i == len(out1)-1 and out1[i] == '0' :             continue         else:             out2 = out2 + str(out1[i])     return out2 s = list("98766730") a = int2set(array = s) print (a)
点赞 评论

相关推荐

吃不饱的肱二头肌很想退休:tnnd 我以为选妹子呢,亏我兴高采烈的冲进来😠
投递快手等公司10个岗位
点赞 评论 收藏
分享
牛客网
牛客企业服务