Python 3 教程
Python3 內置函數
hex() 函數用于將一個指定數字轉換為 16 進制數。
hex 語法:
hex(x)
參數說明:
返回一個字符串,以 0x 開頭。
以下實例展示了 hex 的使用方法: