主页
Python
Python math.hypot() 方法
demo_ref_math_hypot
运行 ❯
×
更改方向
保存代码
更改主题
# Import math Library import math #set perpendicular and base parendicular = 10 base = 5 #print the hypotenuse of a right-angled triangle print(math.hypot(parendicular, base))
11.180339887498949