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
d=random.randint(1,10)
f=open("test.txt", "x")
How can I do that?
Aucun commentaire:
Enregistrer un commentaire