PYTHON PROGRAMMING TUTORIAL: How to rename and remove a file from your computer using Python

Publicado em: 01 Novembro 2018
no canal de: Truzz Blogg
158
1

Python For Beginners: Renaming and deleting files using Python code. How to rename and delete/remove a file in Python. File management using Python script/code.

Python Programming Tutorial. Python commands you should know. Learn how to rename and remove a file from your computer using Python commands.

That's a beginner Python Programming tutorial where we're going to learn how to manage files using Python code. To be more precise, we are going to learn how to rename a file and how to remove/delete a file from your hard disk using Python code.

The Python script we have created in this video is:

import os
#Rename a file:
os.rename ("ORIGINAL_PATH", "RENAMED_PATH_OF_YOUR_FILE")
#Delete a file:
os.remove ("PATH_of_your_file")

Thank you for watching! Bye for now!


Nesta página do site você pode assistir ao vídeo on-line PYTHON PROGRAMMING TUTORIAL: How to rename and remove a file from your computer using Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Truzz Blogg 01 Novembro 2018, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 158 vezes e gostou 1 espectadores. Boa visualização!