```python
"""给定一个整数数组 nums 和一个整数目标值 target,
请你在该数组中找出 和为目标值 target 的那 两个 整数,并返回它们的数组下标。"""
def twoSum(nums, target):
l = len(nums)
for i in range(l):
for j in range(l):
if nums[i] + nums[j] != target:
j += 1
else:
break
print([i, j])
twoSum([2, 7, 11, 15], 9)
按理来说,应该输出 [0, 1],为什么运行后输出 [3, 4]?哪里出了问题?
```