Home
Iron Pythonで遊ぶ
Iron Python
Iron Python入門
WPF/XAMLを使おう
Information
私の本棚
Column
コラム
組み込み関数 oct
oct(整数x)
引数(整数x)を8進数
文字列
に変換します。
#coding: shift-jis
print oct(8) ←8進数文字列の最初は'0'で始まります。
print oct(8**20) ←長整数も扱えます。
raw_input()
出力画面:
010
0100000000000000000000L