From 31070e621e2bcd585aec650e27938e5ccfa72040 Mon Sep 17 00:00:00 2001 From: joker Date: Fri, 10 Nov 2023 10:37:32 +0300 Subject: [PATCH] new file: content/posts/informatics/class-10g.mdx new file: content/posts/informatics/class-10v.mdx --- content/posts/informatics/class-10g.mdx | 19 ++++++++ content/posts/informatics/class-10v.mdx | 62 +++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 content/posts/informatics/class-10g.mdx create mode 100644 content/posts/informatics/class-10v.mdx diff --git a/content/posts/informatics/class-10g.mdx b/content/posts/informatics/class-10g.mdx new file mode 100644 index 0000000..033c81b --- /dev/null +++ b/content/posts/informatics/class-10g.mdx @@ -0,0 +1,19 @@ +--- +title: Классная работа 10Г +excerpt: Все, что показывал в классе тут есть. +date: '2023-11-09' +tags: + - Информатика + - Программирование + - Python + - Задачи +--- + + + +- [Урок 1](#урок-1) + + + +## Урок 10.11.23 + diff --git a/content/posts/informatics/class-10v.mdx b/content/posts/informatics/class-10v.mdx new file mode 100644 index 0000000..12edf41 --- /dev/null +++ b/content/posts/informatics/class-10v.mdx @@ -0,0 +1,62 @@ +--- +title: Классная работа 10В +excerpt: Все, что показывал в классе тут есть. +date: '2023-11-09' +tags: + - Информатика + - Программирование + - Python + - Задачи +--- + + + +- [Урок 10.11.23](#урок-10.11.23) + + + +## Урок 08.11.23 + +~~~python +# Импортируем библиотеку pygame +import pygame +# Импортируем системную функцию exit +from sys import exit + +# Инициализируем pygame +pygame.init() + +k = 6 + +wDisp = 900 +hDisp = 300 + +display = pygame.display.set_mode((wDisp, hDisp)) + +PURPLE = (156, 39, 176) +INDIGO = (63, 81, 181) +BLUE = (33, 150, 243) + +wS = wDisp/3 +hS = hDisp + +pygame.draw.rect(display, PURPLE, ((wDisp/2)-(wS/2)-wS, (hDisp/2)-(hS/2), wS, hS)) +pygame.draw.rect(display, INDIGO, ((wDisp/2)-(wS/2), (hDisp/2)-(hS/2), wS, hS)) +pygame.draw.rect(display, BLUE, ((wDisp/2)-(wS/2)+wS, (hDisp/2)-(hS/2), wS, hS)) + +# Основной цикл игры +while True: + # Ждем события (действия пользователя) + for event in pygame.event.get(): + # Если нажали на крестик, + # то закрываем окно + if event.type == pygame.QUIT: + pygame.quit() + exit() + + # Обновляем поверхность игры + # на каждом шаге основного цикла игры + pygame.display.update() +~~~ + +## Урок 09.11.23 \ No newline at end of file