Make a compreherenssion list in python

前端 未结 0 1671
悲哀的现实
悲哀的现实 2020-12-17 10:39

Search for a unique number in the list

for num in list:
    if num not in unique:
        unique.append(num)

the code above works pretty well

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