dimanche 21 mars 2021

Wondering how I can store an address into a temporary block that will be wiped on a loop iteration

I am trying to come up with a way to pull 4 files from a directory and to store the address into a temporary file. I am using the random module in Python with the random.choice(directory) to pull the pictures. I need to assign these chosen files to temp variables, and on the next iteration wipe the variables so that 4 new files can be picked. I tried using lambda to assign it but it seems a bit too complex. Is there any way of doing this?

Thanks!




Aucun commentaire:

Enregistrer un commentaire