class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: Listint
:type target: int
:rtype: Listint
"""
myDict = {}
for i,t in enumerate(nums):
myDictnums\[i] = i
for i,t in enumerate(nums):
tmp = target - t
if myDict.get(tmp)!=None and myDict.get(tmp)!=i:
return i,myDict.get(tmp)