题解 | #字符集合#

字符集合

https://www.nowcoder.com/practice/784efd40ed8e465a84821c8f3970b7b5

while True:
    try:
        list1=[x for x in input()]
        list2=[]
        for x in list1:
            if x in list2:
                continue
            else:
                list2.append(x)

        print(''.join(list2))
    except:
        break

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务