英文文档: format(value[, format_spec]) Convert a value to a "formatted" representation, as controlled by format_spec. The interpretation of format_spec will depend on the type of the value argument, however there is a standard formatting syntax that…
英文文档: oct(x) Convert an integer number to an octal string. The result is a valid Python expression. If x is not a Python int object, it has to define an __index__() method that returns an integer. 说明: 1. 函数功能将一个整数转换成8进制字符串.如果传入浮点数或者字符串均会报错. >>> a…
英文文档: format(value[, format_spec]) Convert a value to a “formatted” representation, as controlled by format_spec. The interpretation of format_spec will depend on the type of the value argument, however there is a standard formatting syntax that is u…