結果 : how to check if an array has duplicate values in python