当前位置:网站首页>十六进制编码简介
十六进制编码简介
2022-07-03 08:06:00 【AI-剁椒鱼头】
十六进制简介
十六进制是一个以16为基数的计数系统,这意味着每个数字代表16个不同的数字,而不是以10为基数的系统中的10个数字。系统通常用数字0-9表示前10位,然后用字母A-F表示后6位。它不是一种历史上的计数系统,但它起源于电子时代,因为它是一种对二进制系统相当友好的扩展方式。
计算机使用一种简单的2进制计数系统,称为二进制。然而,这对于人类的交互是相当麻烦的。十六进制提供了一种更有效的方法来关联二进制值,这是因为16是2的四次方,所以一个数字可以看成是四个二进制数字。
换句话说,二进制中的任何四位值都可以表示为“十六进制”的一位数字,二进制中的八位值可以表示为十六进制的两位数字,以此类推。这与我们通常使用的base-10系统形成了对比,后者不会均匀地匹配任何一致倍数的二进制数字。
虽然在计算中使用了更大的基本系统,比如base-32系统和base-64系统,但是十六进制对于大多数人来说更容易交互,所以它仍然是最普遍的。Base-32和base-64都在计算方面有应用,但它们很少用于任何地方,而是用于最深层的编码。
十六进制编码表
| 码值 | 字符 | 2进制 |
|---|---|---|
| 0 | 0 | 0000 |
| 1 | 1 | 0001 |
| 2 | 2 | 0010 |
| 3 | 3 | 0011 |
| 4 | 4 | 0100 |
| 5 | 5 | 0101 |
| 6 | 6 | 0110 |
| 7 | 7 | 0111 |
| 8 | 8 | 1000 |
| 9 | 9 | 1001 |
| 10 | A | 1010 |
| 11 | B | 1011 |
| 12 | C | 1100 |
| 13 | D | 1101 |
| 14 | E | 1110 |
| 15 | F | 1111 |
使用工具 http://www.lzltool.com/hex 可以在线解析十六进制,将十六进制转换成字符串或Base64、或Base64Url格式
边栏推荐
猜你喜欢

Free use until 2015 -- viz artist multi touch plug-in package

Youyou1 of xlua knapsack system

Oracle queries grouped by time

JS common basic case sorting (continuous update)

Xlua task list youyou

Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does

My touch screen production "brief history" 1

一条通往服务器所有端口的隧道

Are you still watching the weather forecast on TV?

Ventuz Foundation Series "one step at the door"
随机推荐
An intern's journey to cnosdb
Golang url的编码和解码
Unity change default editor
Scite change background color
Conversion between JSON and object
Huawei s5700 switch initialization and configuration SSH and telnet remote login methods
register关键字
L'installateur a été installé avec une erreur inattendue
Redis view client connection
How to clear the console password for s7700 device
Basic operation and process control 2
Golang 时间格式整理
P1896 [scoi2005] non aggression (shape pressure DP)
一个实习生的CnosDB之旅
MAE
Luaframwrok handles resource updates
My touch screen production "brief history" 2
About the problem that the editor and the white screen of the login interface cannot be found after the location of unityhub is changed
PostGIS space function
Golang的range