Citește codul cu atenție
import os, tempfile
with tempfile.TemporaryDirectory() as d:
path = os.path.join(d, "scratch.txt")
with open(path, "w") as f:
f.write("hi")
print(os.path.exists(path))
print(os.path.exists(path))Ce va afișa programul? Scrie aici: