2023-06-24 Python - math.sqrt(x):平方根(ルート√) Python3 mathモジュール 概要 インポート 実行結果 表示イメージ 概要sqrt(x) 平方根(ルート√) mathモジュール インポート import math 実行結果 import math print(math.sqrt(2)) print(math.sqrt(4)) 表示イメージ 1.4142135623730951 2.0