並前往https://leetcode.com/problems/contains-duplicate-ii/discuss/154193/my-python-solution-using-dictionary-shua-ti-zhong