python計算對數值

captain飛虎大隊發表於2020-09-26

僅作為操作學習,大佬請跳過。

import math

print(math.log(4,2))

結果等於2。

注:
在這裡插入圖片描述

預設的底是自然對數e


傳送門

相關文章