首页 新闻 会员 周边
2
回答数

回答被采纳 小白请教python

这段代码如何优化: def has_duplicates(nums): for num in nums: if nums.count(num) > 1: return True return Fals