תשובה אחת
def copy_file_content(source, destination):
with open(source, 'r') as source_file, open(destination, 'w') as destination_file:
content = source_file.read()
destination_file.write(content)
with open(source, 'r') as source_file, open(destination, 'w') as destination_file:
content = source_file.read()
destination_file.write(content)
באותו הנושא: