come traferire file python 1

come traferire file python

os.unlink("C:\\lezione20\\cancellami.txt")

Here is what the above code is Doing:
1. We import the os module.
2. We call the os.unlink() function, which deletes the file at the path “C:\\lezione20\\cancellami.txt”.
3. We call the os.rmdir() function, which deletes the folder at the path “C:\\lezione20\\cancellami”.

Similar Posts