class Solution(object):
def containsDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
for i in range(0,len(nums) - 1):
a = nums[i]
for j in range(i + 1, len(nums) - 1):
if a == nums[j]:
return True
else:
continue
return False
返回值为false要大写首字母