// | 取整除 - 返回商的整数部分(向下取整) |
3//2 = 1 5//2 =2
pow(x,y) 函数是计算x的y次方
itertools
模块提供的全部是处理迭代功能的函数,它们的返回值不是list,而是Iterator
,只有用for
循环迭代的时候才真正计算。
// | 取整除 - 返回商的整数部分(向下取整) |
3//2 = 1 5//2 =2
pow(x,y) 函数是计算x的y次方
itertools
模块提供的全部是处理迭代功能的函数,它们的返回值不是list,而是Iterator
,只有用for
循环迭代的时候才真正计算。