数値と角度を相互に変換する方法【Python】 HOME > Python > Python 投稿日:2021年2月25日 変換する math モジュール内の角度radiansとdegreesを利用する。 import math # 数値 → 角度変換 math.radians(180) -> 3.1415926535897931 # 角度 → 数値変換 math.degrees(3.1415926535897931) -> 180 Twitter シェア Google+ Pocket B!はてブ LINE -Python