py-itertools

 

 

 

 

 

 

 

 

// 取整除 - 返回商的整数部分(向下取整

 3//2 = 1  5//2 =2

pow(x,y) 函数是计算x的y次方

 

itertools模块提供的全部是处理迭代功能的函数,它们的返回值不是list,而是Iterator,只有用for循环迭代的时候才真正计算。 

猜你喜欢

转载自blog.csdn.net/qq_35355153/article/details/82117245
py