One line coding with if statement inside for loop

后端 未结 0 1019
孤城傲影
孤城傲影 2020-12-07 03:21

I need help shortening the following code into one line.

for i in objects:
    if i not in uniq: 
        uniq.append(i)

Im just doing it for

相关标签:
回答
  • 消灭零回复
提交回复
热议问题