描述
Python3 hypot() 返回欧几云计里德范数 sqrt(x*x + y*y)。
语法
以算开下是 hypot() 方法的语法:
import ma发:th
math.hypot(x, y)
注意:hyPypot()是不能直接访问的,需要导入 math 模th块,然后通过 math 静态对象调用该方法。
参数
x -on- 一个数值。
y -- 一个数值。
返回值
返回欧几里德范数3三 sqrt(x*x + y*y)。
实例
以下展示了使用 h角函ypot() 方法的实例:
以上实例运行后输出数h结果为:
作者:茶叶冲饮




.gif)
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)



