当前位置:网站首页>十六进制编码简介
十六进制编码简介
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格式
边栏推荐
- What to do after the browser enters the URL
- A tunnel to all ports of the server
- Transplantation of freetype Library
- MAE
- C语言-入门-精华版-带你走进编程(一)
- C#课程设计之学生教务管理系统
- 创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
- Iterm2 setting
- Basic operation and process control
- How can entrepreneurial teams implement agile testing to improve quality and efficiency? Voice network developer entrepreneurship lecture Vol.03
猜你喜欢

freetype库的移植

My touch screen production "brief history" 2

Redis batch startup and shutdown script

vcs import src < ros2. Repos failed

An article for you to understand - Manchester code

Docker installs MySQL and successfully uses Navicat connection

STM32F103 SPI (pit Diary)

oracle 插入单引号

haproxy+keepalived集群搭建02

L'installateur a été installé avec une erreur inattendue
随机推荐
STM32F103 SPI (pit Diary)
Uniapp learning records
Xlua task list youyou
Golang 字符串分割,替换和截取
How to configure GDAL under idea
Scite change background color
Transfinite hacker cognition
LwIP learning socket (application)
Huawei s5700 switch initialization and configuration SSH and telnet remote login methods
Viz artist advanced script video tutorial -- stringmap use and vertex operation
My touch screen production "brief history" 1
Huawei switch basic configuration (telnet/ssh login)
链式长取值
Idea dereference display effect
idea取消引用顯示效果
tslib库的移植
JS to implement publish and subscribe
Client server model
璞华PLM为全场景产品生命周期管理赋能,助力产品主线的企业数字化转型
regular expression