python--iter()+next()+sum()
1.first of all, let’s talk about the usage of next()
look at this picture:
Amazing! why we only get a element from it once? I don’t know, but it is useful.
Now we learn the use of the sum() function who always work with iter.
the programmer is:
sum(iterable[,start])
the args of iterable may be list,tuple,set and so on;
start: plus the args pointed
there are some example:
the function in matrix:
相關文章
- 秒殺 2Sum 3Sum 4Sum 演算法題演算法
- GCD SUMGC
- Sum Problem
- 集合sum
- 15+18、3Sum 4Sum
- leetcode Sum系列LeetCode
- Sum of Left Leaves
- Path-sum
- Path Sum III
- Leetcode Path SumLeetCode
- B - Minimum Sum
- Range Minimum Sum
- Missing Subsequence Sum
- Leetcode 39 Combination SumLeetCode
- md5sum
- 112-Path Sum
- Leetcode 1 two sumLeetCode
- 7.22 APPROX_SUMAPP
- the Sum of Cube hd 5053
- LeetCode | 1 Two SumLeetCode
- SQL groupby sum 用法SQL
- eslint-disable-next-line to ignore the next lineEsLint
- leetcode-39-Combination SumLeetCode
- Leetcode 40 Combination Sum IILeetCode
- [LintCode] 3Sum Smaller
- Linux基礎命令—sumLinux
- Leetcode 15 3SumLeetCode
- Leetcode 18 4SumLeetCode
- 404-Sum of Left Leaves
- 64. Minimum Path Sum
- 437-Path Sum III
- 113-Path Sum II
- Linq sum()時遇到NULLNull
- LeetCode-1 Two SumLeetCode
- LeetCode 112. Path SumLeetCode
- tf.reduce_sum用法
- [LeetCode]1.Two SumLeetCode
- B. Missing Subsequence Sum