当前位置:网站首页>十六进制编码简介
十六进制编码简介
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格式
边栏推荐
- Editor Extensions
- Xlua task list youyou
- What is a data type? What is the use of data types?
- Lua hot update basic grammar
- Unity one click AssetBundle
- Golang的range
- About the problem that the editor and the white screen of the login interface cannot be found after the location of unityhub is changed
- [set theory] order relation (the relation between elements of partial order set | comparable | strictly less than | covering | Haas diagram)
- What to do after the browser enters the URL
- WPF:解决MaterialDesign:DialogHost 无法关闭问题
猜你喜欢

VMware virtual machine configuration static IP

多旅行商问题——公式和求解过程概述

Basic operation and process control 2

Open the influence list of "National Meteorological Short Videos (Kwai, Tiktok) in November" in an interactive way“

超限黑客认知

C#课程设计之学生教务管理系统

Iterm2 setting

数据的存储

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

Abstract classes and interfaces
随机推荐
An intern's journey to cnosdb
regular expression
Youyou1 of xlua knapsack system
P2704 [NOI2001] 炮兵阵地(状压dp)
Chain length value
Huawei switch console password reset, device initialization, default password
register关键字
数据的存储
Demonstration of plug-in use of ventuz basic series
The general trend of data news releases the power of visual reporting ----- essays after reading
LwIP learning socket (application)
Transfinite hacker cognition
多旅行商问题——公式和求解过程概述
P2622 关灯问题II(状态压缩 搜索)
E: Unable to locate package ROS melody desktop full
JS common basic case sorting (continuous update)
Microsoft Security Response Center
使用 FileChannel 进行文件的复制拷贝
Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does
What to do after the browser enters the URL