当前位置:网站首页>十六进制编码简介
十六进制编码简介
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格式
边栏推荐
- [cocos creator] Click the button to switch the interface
- [end of 2021] National Meteorological Short Video (Kwai, Tiktok) influence list in December
- Youyou1 of xlua knapsack system
- P2704 [noi2001] artillery position (shape pressure DP)
- Unity one click AssetBundle
- Mutual call between Lua and C #
- Golang 中string和int类型相互转换
- Xlua task list youyou
- the installer has encountered an unexpected error installing this package
- 数据的存储
猜你喜欢

Viz artist advanced script video tutorial -- stringmap use and vertex operation

方正锐利重磅升级到12.0版本,包装印前处理更加便捷、高效!

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

Iterm2 setting

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

Wechat applet taro learning record

What is a data type? What is the use of data types?

PostGIS space function

An article for you to understand - Manchester code

Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does
随机推荐
WPF:解决MaterialDesign:DialogHost 无法关闭问题
Unity change default editor
MAE
Product creation and commercial realization of chat robot (according to La Ma Bang - Dr. Wang Jingjing - speech)
Luaframwrok handles resource updates
Unity2019_ Natural ambient light_ Sky box
使用 FileChannel 进行文件的复制拷贝
[cocos creator] Click the button to switch the interface
JS common basic case sorting (continuous update)
[usaco12mar]cows in a skyscraper g (state compression DP)
Use filechannel to copy files
What to do after the browser enters the URL
Golang 时间格式整理
How to clear the console password for s7700 device
Golang json格式和结构体相互转换
[untitled]
the installer has encountered an unexpected error installing this package
jsutlis
What is definition? What is a statement? What is the difference between them?
Three characteristics