[Python] Do I have to add anything at the top of a python script if I don't know how a person...

Discussão em 'Python' iniciado por Stack, Fevereiro 8, 2025.

  1. Stack

    Stack Membro Participativo

    I have to send a python script to a person but I do not know how they will run the script. Is there anything that I have to include at the top of the script to ensure that the script will run. I used TextWrangler text editor on MAC os x. Have no clue what OS they will be using or anything else for that matter. My code start with:

    import itertools

    ....Rest of code....


    Something I should add, the OS they will be using is either a distribution of linux, mac os or a newer version of windows.

    Continue reading...

Compartilhe esta Página