oct

  • python oct()

    内置函数oct()用于获取给定整数的八进制值。此方法接受单个参数,并返回前缀为“0o”的转换后的八进制字符串。 **oct(x)** #where x must be an int…

    编程 2025-01-02