最基础的知识往往是最容易被忽略的点,放低姿态,夯实基础,才能行稳致远。
存储空间单位换算
1 2 3 4 5 6 7
| 1 B = 8 bit 1 KB = 1024 B = 8192 bit 1 MB = 1024 KB = 1048576 B = 8388608 bit 1 GB = 1024 MB = 1048576 KB = 1073741824 B = 8589934592 bit 1 TB = 1024 GB = 1048576 MB = 1073741824 KB = 1099511627776 B = 8796093022208 bit 1 PB = 1024 TB = 1048576 GB = 1073741824 MB = 1099511627776 KB = 1125899906842624 B = 9007199254740992 bit 1 EB = 1024 PB = 1048576 TB = 1073741824 GB = 1099511627776 MB = 1125899906842624 KB = 1.152921504606847e+18 B = 9.223372036854776e+18 bit
|
ASCII编码
- 一个ASCII码占一个字节
- 一个英文字母占一个字节
- 一个中文汉字占两个字节
UTF-8编码
- 一个英文字符等于一个字节
- 一个中文(含繁体)占三个字节
Unicode编码
- 一个英文字占两个字节
- 一个中文(含繁体)占两个字节
符号