Next:
強制轉換
Up:
實機練習題
Previous:
type 函式
Contents
DYWANG_HOME
進位轉換
dtype-dec.py
設定二進位變數 x 等於 1011,印出十進位結果。
設定八進位變數 x 等於 7215,印出十進位結果。
設定十六進位變數 x 等於 5FE2,印出十進位結果。
dtype-bin.py
設定十進位變數 x 等於 3285
印出 x 二進位結果。
印出 x 八進位結果。
印出 x 十六進位結果。