samedi 15 mai 2021

Random number as file name [duplicate]

So, I want to put a random number as my filename in f=open I generated the number with d=random.randint(1,10) and I want to put that as my filename in f=open.

f=open("test.txt", "x")

How can I do that?




Aucun commentaire:

Enregistrer un commentaire