添加0724寻找数组的中心索引 Python版本

This commit is contained in:
Steve0x2a
2021-08-15 14:52:09 +08:00
committed by GitHub
parent 2f39c7df81
commit e35c7cc63f

View File

@ -89,7 +89,7 @@ class Solution {
## Python
```python
```python3
class Solution:
def pivotIndex(self, nums: List[int]) -> int:
numSum = sum(nums) #数组总和