скелет проекта

This commit is contained in:
Брилин Никита 2026-05-08 17:28:57 +03:00
parent b7a558a23b
commit 0b3c11690c
9 changed files with 49 additions and 0 deletions

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

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

View File

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

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

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10" 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/stud203989.iml" filepath="$PROJECT_DIR$/.idea/stud203989.iml" />
</modules>
</component>
</project>

8
.idea/stud203989.iml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

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

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

View File

@ -0,0 +1,9 @@
deep_update(d: dict, path: str, value: any) -> dict
Обновить вложенный словарь по пути, заданному через точку. Пример: "a.b.c" → d["a"]["b"]["c"] = value.
deep_update({"a": {"b": {"c": 1}}}, "a.b.c", 42) → {"a": {"b": {"c": 42}}}
Тесты:
assert deep_update({"a": {"b": {"c": 1}}}, "a.b.c", 42) == {"a": {"b": {"c": 42}}}
assert deep_update({}, "x.y", 5) == {"x": {"y": 5}}

View File

@ -0,0 +1,5 @@
def function(n):
#код программы
#вызов функции

0
test.py Normal file
View File