mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-05 03:30:30 +08:00
build
This commit is contained in:
@@ -729,6 +729,9 @@ elementAddr = firtstElementAddr + elementLength * elementIndex
|
||||
# 直接遍历数组
|
||||
for num in nums:
|
||||
count += 1
|
||||
# 同时遍历数据索引和元素
|
||||
for i, num in enumerate(nums):
|
||||
count += 1
|
||||
```
|
||||
|
||||
=== "Go"
|
||||
|
||||
Reference in New Issue
Block a user