How to use SPI under Ubuntu (Python3)

Hello there
I try to testing peripherals on X1 by using python3. Now UART and I2C already finished.
And I have plan to use libgpiod with spidev but I can’t find SPI pin number.

Could anyone can help me?

/ [i2C]
/ [UART]

Install the python spidev library.
Refer to the library’s instructions for how to use it.