[py] encoding

encoding and ascii

Understand ascii encoding
Computers were invented by Americans. The earliest character encoding is ASCII, which only specifies the correspondence between English letters and numbers and some special characters and numbers. It can only be represented by a maximum of 8 bits (one byte), that is: 2**8 = 256,
so the ASCII code can only represent a maximum of 256 symbols

refer to

string encoding

In addition to strings, there are pictures, videos & sounds in the computer, first figure out the string encoding

coding

Picture/Video & Sound: HDD--Screen Display

How did the 0s and 1s of a computer become the pictures, videos and sounds we see on our screens?

图片: 像素,如果是黑白图片
    2bit: 4种颜色
    位数越多,能展示的颜色越丰富

视频: 一张张的图片组成,原理和图片一样

声音: 采样--量化,然后模拟各种高低电平

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324610633&siteId=291194637