去除字符串重复数据 分类: python基础学习 2013-08-08 17:43 171人阅读 评论(0) 收藏

去除重复数据:


a = 'abcaAbBc'

r = ''
for i in a:
    if i not in r:
        r+=i
print r

版权声明:本文为博主原创文章,未经博主允许不得转载。

原文地址:https://www.cnblogs.com/think1988/p/4628108.html