From b2855ba7ccb1058b2b215a2cf7ac11a242c0c609 Mon Sep 17 00:00:00 2001 From: joker Date: Tue, 14 Nov 2023 13:07:29 +0300 Subject: [PATCH] modified: content/posts/informatics/class-10g.mdx modified: content/posts/informatics/class-10v.mdx modified: content/posts/informatics/ms-power.mdx --- content/posts/informatics/class-10g.mdx | 35 ++++++++++++++ content/posts/informatics/class-10v.mdx | 29 ++++++++++- content/posts/informatics/ms-power.mdx | 64 +++++++++++++++++++++++++ 3 files changed, 127 insertions(+), 1 deletion(-) diff --git a/content/posts/informatics/class-10g.mdx b/content/posts/informatics/class-10g.mdx index 6a6fc19..7edb621 100644 --- a/content/posts/informatics/class-10g.mdx +++ b/content/posts/informatics/class-10g.mdx @@ -58,3 +58,38 @@ while True: # на каждом шаге основного цикла игры pygame.display.update() ~~~ + + +## Урок 14.11.23 + +~~~python +# main.py +from mydrive import drive + +# где my_package - пакет +# my_module - искомый файл + +#Скорость - 50 км/ч +#Время - 4 ч +#Путь - 200 км +#45 - скорость +#30 - путь +mas = [[45,30],[67,56],[34,32],[67,56],[89,32],[22,67],[56,32],[67,67],[67,67]] + +t = 0.0 + +for i in range(len(mas)): + t = t + drive(mas[i][0],0,mas[i][1]) +print(t) +~~~ + +~~~python +# mydrive.py +def drive(v,t,s): + if v == 0: + return (float(s/t)) + if t == 0: + return (float(s/v)) + if s == 0: + return (float(t*v)) +~~~ diff --git a/content/posts/informatics/class-10v.mdx b/content/posts/informatics/class-10v.mdx index 12edf41..6a7b3f7 100644 --- a/content/posts/informatics/class-10v.mdx +++ b/content/posts/informatics/class-10v.mdx @@ -59,4 +59,31 @@ while True: pygame.display.update() ~~~ -## Урок 09.11.23 \ No newline at end of file +## Урок 14.11.23 + +~~~python +# main.py +from mylib import speed +mas = [[45,0,67],[67,0,222],[43,0,45],[78,0,321]] + +summ = 0 + +for i in range(len(mas)): + summ = summ + speed(mas[i][0],mas[i][1],mas[i][2]) + +print(summ) +~~~ + +~~~python +# mylib.py + +def speed(v,t,s): + summ = 0 + if v == 0: + summ = (s/t) + if t == 0: + summ = (s/v) + if s == 0: + summ = (t*v) + return summ +~~~ \ No newline at end of file diff --git a/content/posts/informatics/ms-power.mdx b/content/posts/informatics/ms-power.mdx index 7e9a18a..8a3b5ac 100644 --- a/content/posts/informatics/ms-power.mdx +++ b/content/posts/informatics/ms-power.mdx @@ -54,5 +54,69 @@ tags: src={`/informatica/5_1/src/video.mov`} /> +# Урок-2 +## Создание фона для презентации Microsoft PowerPoint + +## Задание: +* Вам необходимо создать презентацию, сделать дизайн фона на главной странице и других страницах. +* В презентации должно быть минимум 4 слайда. + +## Видео инструкция по созданию презентации +