Take you to understand binary

Table of contents

Video reference:

Narrated by: Editor

Operation:

1001 (Binary) ==9 (Tens digit) 1111 (Binary) ==15 (Tens digit) 11001 (Binary) ==25 (Tens digit) 2.

 ASCII encoding:

            e = 101 = 64+32+4+1 How to express it in Chinese?

After talking about letters, let’s talk about how to represent pictures in binary:

For example, edit

Color is also represented by binary: ​Edit


Video reference:

Understand binary in ten minutes, the principle of computer binary that even novices can understand_bilibili_bilibili [

Principle 3.3] Binary to hexadecimal; two to hexadecimal_bilibili_bilibili


explain:

Operation:


1001 (binary) ==9 (tens digit)
1111 (binary) ==15 (tens)
11001 (binary) ==25 (tens)


2.

1 byte = 8Bit, which is 255 in decimal
 1 byte = 255Bit

Byte is the basic unit of calculation and storage, and one English letter occupies one byte.

For example:
there is a file on the computer that occupies 1K, which is equal to 1Kb, = 1K bytes 1K =1024 bytes.
There is a photo that is 1M, which is equal to 1Mb, = 1M bytes 1M =1024K bytes

 1K =1024 bytes
 1M = 1024K bytes
 1G = 1024M bytes
 1T = 1024G bytes

 ASCII encoding:


 


For example:


            e = 101 = 64+32+4+1


How to express it in Chinese?

In the past, most Chinese would use GBK encoding, but now UTF-8 is used uniformly

. Comparison:                                     

After talking about letters, let’s talk about how to represent pictures in binary:

For example


 

The picture is composed of small squares, that is, pixels. Each pixel can be represented by one or several binary numbers.


Color is also represented by binary:

Guess you like

Origin blog.csdn.net/zyy_give/article/details/131104254