python之数组中重复的数字
# coding: utf-8class Solution: def duplicate(self,alist): """返回数组中重复的数字""" tmp = [] for item in alist: if alist.count(item) > 1: tmp.ap