From 2a38c46305df2e9556bd5d86ba415ad10040af5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=93=D0=B5=D1=82?= =?UTF-8?q?=D0=BC=D0=B0=D0=BD?= Date: Fri, 3 Apr 2026 13:31:32 +0000 Subject: [PATCH 1/7] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | Bin 0 -> 1024 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000000000000000000000000000000000000..06d7405020018ddf3cacee90fd4af10487da3d20 GIT binary patch literal 1024 ScmZQz7zLvtFd70QH3R?z00031 literal 0 HcmV?d00001 From 7d642b20d8ffbf20890c462ce95ed360f0b2e0cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=93=D0=B5=D1=82?= =?UTF-8?q?=D0=BC=D0=B0=D0=BD?= Date: Fri, 3 Apr 2026 13:33:05 +0000 Subject: [PATCH 2/7] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C?= =?UTF-8?q?=20main.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | Bin 1024 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 main.py diff --git a/main.py b/main.py deleted file mode 100644 index 06d7405020018ddf3cacee90fd4af10487da3d20..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1024 ScmZQz7zLvtFd70QH3R?z00031 From 09caf250cebd08454fe9ef34ee46a4f2c87becb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=93=D0=B5=D1=82?= =?UTF-8?q?=D0=BC=D0=B0=D0=BD?= Date: Fri, 3 Apr 2026 21:37:46 +0000 Subject: [PATCH 3/7] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..ce47b77 --- /dev/null +++ b/main.py @@ -0,0 +1 @@ +print("hello") \ No newline at end of file From 3c07a39becc888873b31fe47015f120ac74b8642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=93=D0=B5=D1=82?= =?UTF-8?q?=D0=BC=D0=B0=D0=BD?= Date: Fri, 3 Apr 2026 21:47:42 +0000 Subject: [PATCH 4/7] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20main.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index ce47b77..2499738 100644 --- a/main.py +++ b/main.py @@ -1 +1,28 @@ -print("hello") \ No newline at end of file +def main(): + print("\n======== Введите название файла с форматом .csv или используйте по умолчанию (Enter) ========") + name_report = input() + if not name_report: + name_report = "data.csv" + #проверка на правильность ввода имени файла + if name_report[-4:] == ".csv": + try: + report = open(name_report, 'r+', encoding='cp1251') + except: + print("Файл отсутствует") + else: + #запись файла в список + print("Содержимое файла:") + dec_report = list() + for i in report: + dec_report.append(i) + report.close() + print("id rating text") + for i in dec_report: + print(i) + else: + print("Неверный тип файла! " + "\nНеобходимо выбрать файл с форматом .csv") + + +if __name__ == "__main__": + main() \ No newline at end of file From 63bab551936b03b4a805b772c296e1cca66be10a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=93=D0=B5=D1=82?= =?UTF-8?q?=D0=BC=D0=B0=D0=BD?= Date: Fri, 3 Apr 2026 21:48:06 +0000 Subject: [PATCH 5/7] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data.csv | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 data.csv diff --git a/data.csv b/data.csv new file mode 100644 index 0000000..708f36e --- /dev/null +++ b/data.csv @@ -0,0 +1,3 @@ +1;5;good job +2;5;nice price +3;5;super work \ No newline at end of file From 4256687f2753468f7e8f4fa30374b4c479cbf564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=93=D0=B5=D1=82?= =?UTF-8?q?=D0=BC=D0=B0=D0=BD?= Date: Tue, 14 Apr 2026 13:12:55 +0000 Subject: [PATCH 6/7] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C?= =?UTF-8?q?=20data.csv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data.csv | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 data.csv diff --git a/data.csv b/data.csv deleted file mode 100644 index 708f36e..0000000 --- a/data.csv +++ /dev/null @@ -1,3 +0,0 @@ -1;5;good job -2;5;nice price -3;5;super work \ No newline at end of file From 86959f6cf0ab0dd2bfb267bdd0986de3b8a8141c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=93=D0=B5=D1=82?= =?UTF-8?q?=D0=BC=D0=B0=D0=BD?= Date: Tue, 14 Apr 2026 13:13:21 +0000 Subject: [PATCH 7/7] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C?= =?UTF-8?q?=20main.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 main.py diff --git a/main.py b/main.py deleted file mode 100644 index 2499738..0000000 --- a/main.py +++ /dev/null @@ -1,28 +0,0 @@ -def main(): - print("\n======== Введите название файла с форматом .csv или используйте по умолчанию (Enter) ========") - name_report = input() - if not name_report: - name_report = "data.csv" - #проверка на правильность ввода имени файла - if name_report[-4:] == ".csv": - try: - report = open(name_report, 'r+', encoding='cp1251') - except: - print("Файл отсутствует") - else: - #запись файла в список - print("Содержимое файла:") - dec_report = list() - for i in report: - dec_report.append(i) - report.close() - print("id rating text") - for i in dec_report: - print(i) - else: - print("Неверный тип файла! " - "\nНеобходимо выбрать файл с форматом .csv") - - -if __name__ == "__main__": - main() \ No newline at end of file