From b5d0e21442a511b7c54a912dc464a2db105e22a2 Mon Sep 17 00:00:00 2001 From: stud203820 Date: Thu, 7 May 2026 19:16:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=81=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB?= =?UTF-8?q?=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 3 +++ .idea/1laba.iml | 10 ++++++++++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 7 +++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 7 +++++++ SPLITOVIK | 1 + code.py | 10 ++++++++++ data.txt | 5 +++++ output.txt | 5 +++++ 10 files changed, 62 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/1laba.iml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 160000 SPLITOVIK create mode 100644 code.py create mode 100644 data.txt create mode 100644 output.txt diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/1laba.iml b/.idea/1laba.iml new file mode 100644 index 0000000..3028cff --- /dev/null +++ b/.idea/1laba.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..b7e0448 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..289c25a --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..24529f4 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/SPLITOVIK b/SPLITOVIK new file mode 160000 index 0000000..8629846 --- /dev/null +++ b/SPLITOVIK @@ -0,0 +1 @@ +Subproject commit 8629846afae97cb9acad0175778eb9085a97348a diff --git a/code.py b/code.py new file mode 100644 index 0000000..e61597f --- /dev/null +++ b/code.py @@ -0,0 +1,10 @@ +with open('data.txt', 'r', encoding='utf-8') as f: + lines = f.readlines() + +processed_lines = [f"_{line.strip().upper()}_" for line in lines] + +with open('output.txt', 'w', encoding='utf-8') as f: + for line in processed_lines: + f.write(line + '\n') + +print("Данные успешно преобразованы в КУРСИВНЫЙ КАПС и записаны в output.txt") \ No newline at end of file diff --git a/data.txt b/data.txt new file mode 100644 index 0000000..01ed667 --- /dev/null +++ b/data.txt @@ -0,0 +1,5 @@ + деревяшка + дом + рвбота + семья + пятёрочка \ No newline at end of file diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..94b146e --- /dev/null +++ b/output.txt @@ -0,0 +1,5 @@ +_ДЕРЕВЯШКА_ +_ДОМ_ +_РВБОТА_ +_СЕМЬЯ_ +_ПЯТЁРОЧКА_