[Python] Copy multiple items to clipboard in Python

Discussão em 'Python' iniciado por Stack, Setembro 16, 2024.

  1. Stack

    Stack Membro Participativo

    I tried using pyperclip but it only copies the last value. This is what I have right now

    import pyperclip

    array = ["a" , "b", "c"]

    for x in array:
    pyperclip.copy(x)


    This only copies "c", whereas I want to copy all 3 values

    I know I can join the values together and copy, but then it's all in one entry like this

    I want it to be like this instead (order doesn't really matter)

    Continue reading...

Compartilhe esta Página