python_rag_system/lesson_9/home_task/task32.py
2025-10-18 19:17:31 +03:00

13 lines
490 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#todo: Вы пишете скрипт для очистки временных файлов. Создайте список полных путей к временным файлам (с расширениями .tmp, .bak),
# добавив к каждому путь "/tmp/".
files = [
"document.pdf",
"temp_backup.tmp",
"image.jpg",
"cache.tmp",
"report.docx",
"old_data.bak"
]
# результат:
['/tmp/temp_backup.tmp', '/tmp/cache.tmp', '/tmp/old_data.bak']