все файлы

This commit is contained in:
Марина Лехмак 2026-05-07 19:16:44 +03:00
parent f76005094b
commit b5d0e21442
10 changed files with 62 additions and 0 deletions

3
.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

10
.idea/1laba.iml generated Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.venv" />
</content>
<orderEntry type="jdk" jdkName="Python 3.10 (1laba)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

7
.idea/misc.xml generated Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Black">
<option name="sdkName" value="Python 3.10 (pythonProject1)" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (1laba)" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/1laba.iml" filepath="$PROJECT_DIR$/.idea/1laba.iml" />
</modules>
</component>
</project>

7
.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$/SPLITOVIK" vcs="Git" />
</component>
</project>

1
SPLITOVIK Submodule

@ -0,0 +1 @@
Subproject commit 8629846afae97cb9acad0175778eb9085a97348a

10
code.py Normal file
View File

@ -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")

5
data.txt Normal file
View File

@ -0,0 +1,5 @@
деревяшка
дом
рвбота
семья
пятёрочка

5
output.txt Normal file
View File

@ -0,0 +1,5 @@
ЕРЕВЯШКА_
ОМ_
_РВБОТА_
_СЕМЬЯ_
_ПЯТЁРОЧКА_