From d0ab132926cede6906306eb31b402f4d7c7dd799 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 23 May 2026 18:48:03 +0300 Subject: [PATCH] add bash-readme --- test_s/test.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 test_s/test.py diff --git a/test_s/test.py b/test_s/test.py deleted file mode 100644 index c17a8cc..0000000 --- a/test_s/test.py +++ /dev/null @@ -1,24 +0,0 @@ -import csv -from datetime import datetime, timedelta - - -def csv_to_ics(csv_file_path): - ics_content = [ - "BEGIN:VCALENDAR", - "VERSION:2.0", - "PRODID:-//MUT_TS//Birthdays//RU", - "CALSCALE:GREGORIAN" - ] - - with open(csv_file_path, mode='r', encoding='utf-8') as file: - # Предполагаем, что разделитель - запятая. Если точка с запятой, измените на delimiter=';' - reader = csv.DictReader(file, delimiter=';') - - - return reader - - - -# Запуск конвертации -print(list(csv_to_ics('1.csv'))) -print("Файл birthdays.ics успешно создан!") \ No newline at end of file