Python | método shutil.copy()
Python3 # Python program to explain shutil.copy() method # importing shutil module import shutil # Source path source = «/home/User/Documents/file.txt» # Destination path destination = «/home/User/Documents/file.txt» # Copy the content of # source to destination try: shutil.copy(source, destination) print(«File copied successfully.») # If source and destination are same except … Continue reading «Python | método shutil.copy()»