题解 | #两数之和#
两数之和
http://www.nowcoder.com/practice/20ef0972485e41019e39543e8e895b7f
class Solution: def twoSum(self , numbers , target ): for i1,v1 in enumerate(numbers): for i2 in range(i1+1,len(numbers)): if v1+numbers[i2]==target: return i1+1,i2+1暴力就完事了