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