oct

  • python oct()

    內置函數oct()用於獲取給定整數的八進位值。此方法接受單個參數,並返回前綴為「0o」的轉換後的八進位字元串。 **oct(x)** #where x must be an int…

    編程 2025-01-02