描述UlT28資訊網——每日最新資訊28at.com
Python3 hypot() 返回歐幾里德范數 sqrt(x*x + y*y)。UlT28資訊網——每日最新資訊28at.com
語法UlT28資訊網——每日最新資訊28at.com
以下是 hypot() 方法的語法:UlT28資訊網——每日最新資訊28at.com
import mathUlT28資訊網——每日最新資訊28at.com
math.hypot(x, y)UlT28資訊網——每日最新資訊28at.com
注意:hypot()是不能直接訪問的,需要導入 math 模塊,然后通過 math 靜態對象調用該方法。UlT28資訊網——每日最新資訊28at.com
參數UlT28資訊網——每日最新資訊28at.com
x -- 一個數值。UlT28資訊網——每日最新資訊28at.com
y -- 一個數值。UlT28資訊網——每日最新資訊28at.com
返回值UlT28資訊網——每日最新資訊28at.com
返回歐幾里德范數 sqrt(x*x + y*y)。UlT28資訊網——每日最新資訊28at.com
實例UlT28資訊網——每日最新資訊28at.com
以下展示了使用 hypot() 方法的實例:UlT28資訊網——每日最新資訊28at.com

以上實例運行后輸出結果為:UlT28資訊網——每日最新資訊28at.com
本文鏈接:http://www.tebozhan.com/showinfo-119-2420-0.html云計算開發:Python3三角函數hypot()方法詳解
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。郵件:2376512515@qq.com
上一篇: 美國監管機構批準愛立信收購云通信供應商Vonage
下一篇: 京東云聯合畢馬威發布《智慧網點與數字化營銷運營白皮書》 場景建設成新趨勢
標簽: