Home
Iron Pythonで遊ぶ
Iron Python
Iron Python入門
WPF/XAMLを使おう
Information
私の本棚
Column
コラム
組み込み関数 pow
pow(x, y[, z])
x の y 乗を返します。z があれば、"pow(x, y)% z"を計算します。
#coding: shift-jis
print pow(3,2) ←3の2乗
print pow(3,3,5) ←"3**3%5"を計算します。
raw_input()
出力画面:
9
2