This commit is contained in:
krahets
2023-04-24 03:30:27 +08:00
parent fe8027e64a
commit a492475196
2 changed files with 319 additions and 0 deletions

View File

@@ -729,6 +729,9 @@ elementAddr = firtstElementAddr + elementLength * elementIndex
# 直接遍历数组
for num in nums:
count += 1
# 同时遍历数据索引和元素
for i, num in enumerate(nums):
count += 1
```
=== "Go"