
Python中pow()与math.pow()函数的应用实例
5星
- 浏览量: 0
- 大小:None
- 文件类型:None
简介:
本文介绍了Python编程语言中两个幂运算函数pow()和math.pow()的区别及其在实际应用中的使用方法,并通过具体示例进行讲解。
本段落介绍了Python中的pow()和math.pow()函数的使用方法。以下是具体内容:
1. 内置函数pow()
>>> help(pow)
Help on built-in function pow in module __builtin__:
pow(x, y[, z]) -> number
With two arguments, equivalent to x**y.
With three arguments, equivalent to (x**y) % z, but may be more efficient (e.g. for long calculations).
全部评论 (0)
还没有任何评论哟~


