python在列表中找出三个数相加等于目标值返回这两个数在列表中的下标(ThreeSum)
代码实现: def threeSum(alist, targetnum): for i, j in enumerate(alist): for m, n in enumerate(alist[i+1:]): realM = i+m+1 k = i+m+2 if alist[k:].count(ta...