[Python] Python Slice Notation with Comma/List

Discussão em 'Python' iniciado por Stack, Junho 21, 2025.

  1. Stack

    Stack Membro Participativo

    I have come across some Python code with slice notation that I am having trouble figuring out. It looks like slice notation but uses a comma and a list:

    list[:, [1, 2, 3]]


    Is this syntax valid? If so what does it do?

    Continue reading...

Compartilhe esta Página