Python标记去重

预逻辑脚本代码:

uniqueList = []
def isDuplicate(inValue):
  if inValue in uniqueList:
    return 1
  else:
    uniqueList.append(inValue)
    return 0

调用:

isDuplicate( ! [NAME] ! )

 

posted @ 2015-01-12 17:22  我也是个傻瓜  阅读(965)  评论(0编辑  收藏  举报