Current location - Trademark Inquiry Complete Network - Tian Tian Fund - What is the base of 0o?
What is the base of 0o?
In PYTHON language, 0o is used to represent an octal constant. Octal, abbreviated as OCT or O, is a counting method based on 8, using eight numbers of 0, 1, 2, 3, 4, 5, 6, 7, and each octal is 1.

Some programming languages usually start with the number 0, indicating that the number is octal. Octal numbers and binary numbers can correspond bit by bit (one bit in octal corresponds to three bits in binary), so they are often used in computer languages.

Octal notation (radix 8) is very common in computer systems, so we can sometimes see people using octal notation. Since one number in hexadecimal can correspond to four binary numbers, it is more convenient to represent binary numbers in hexadecimal. Therefore, octal application is not as good as hexadecimal. Some programming languages provide the ability to use octal symbols to represent numbers, but there are still some older Unix applications that use octal symbols.