最后一个构造函数也采用了字符串“100”——但是它使用基数8来创建整数值,通常称为八进制。
And the final constructor takes the string of characters "100" — but this time creates an integer using base 8, which is more commonly known as base octal.
您可以将输出显示为八进制、十六进制、十进制、浮点数、包含反斜杠转义符的ASCII,或者指定的字符(nl表示换行、ht表示水平制表符,等等)。
You can display output as octal, hex, decimal, floating point, ASCII with backslash escapes, or named characters (nl for newline, ht for horizontal TAB, etc.).
Python支持不同进制的整型字符串文本—八进制、十进制(最明显的!)
Python supports string literals of integers of different bases-octal, decimal (obviously!), and hexadecimal-and now binary has been added.
原来的ASCII 7位字符集将字母、货币、数字和控制码信息映射为十进制、八进制和十六进制数字。
The original ASCII 7-bit character set mapped the letters, and monetary, numerical, and control-code information to decimal, octal, and hexadecimal numbers.
返回表示数字八进制值的字符串。
其他的可选参数是8(八进制),16(十六进制),17(字符)。
The other allowed values are 8 (Octal), 16 (Hexadecimal) or 17 (Characters).
三位八进制数(\nnn)和两位十六进制数(\xnn) 分别代表它们对应的字符的字节码;
The three-digit octal (\nnn) and two-digit hexadecimal (\xnn) escapes represent individual bytes of the resulting string;
三位八进制数(\nnn)和两位十六进制数(\xnn) 分别代表它们对应的字符的字节码;
The three-digit octal (\nnn) and two-digit hexadecimal (\xnn) escapes represent individual bytes of the resulting string;
应用推荐