diff --git a/TEMA1/Colour.png b/TEMA1/Colour.png new file mode 100644 index 0000000..c2f1847 Binary files /dev/null and b/TEMA1/Colour.png differ diff --git a/TEMA1/General.png b/TEMA1/General.png new file mode 100644 index 0000000..c6b2553 Binary files /dev/null and b/TEMA1/General.png differ diff --git a/TEMA1/Ineedhelp.png b/TEMA1/Ineedhelp.png new file mode 100644 index 0000000..cebf972 Binary files /dev/null and b/TEMA1/Ineedhelp.png differ diff --git a/TEMA1/Pr0.py b/TEMA1/Pr0.py new file mode 100644 index 0000000..dc06e45 --- /dev/null +++ b/TEMA1/Pr0.py @@ -0,0 +1,5 @@ +#Программа по Теме 1 <Лазарев Данил Вячеславович> +print('Hello') +h = input('Your name=') +import os +os.chdir('D:\\Lazarev\\Tema1\\') diff --git a/TEMA1/Print.png b/TEMA1/Print.png new file mode 100644 index 0000000..bb94ef6 Binary files /dev/null and b/TEMA1/Print.png differ diff --git a/TEMA1/Protokol.py b/TEMA1/Protokol.py new file mode 100644 index 0000000..a8bd391 --- /dev/null +++ b/TEMA1/Protokol.py @@ -0,0 +1,56 @@ +#Протокол по Теме 1 <Лазарев Данил Вячеславович> +Python 3.13.3 (tags/v3.13.3:6280bb5, Apr 8 2025, 14:47:33) [MSC v.1943 64 bit (AMD64)] on win32 +Enter "help" below or click "Help" above for more information. +import os +os.chdir('D:\\Lazarev\\Tema1\\') + +================= RESTART: D:/Lazarev/Tema1/Pr0.py ================= +Hello +Your name=Danil +import Pr0 +Hello +Your name=Danil + +================= RESTART: D:/Lazarev/Tema1/Pr0.py ================= +Hello +Your name=Danil +import prb1 +Как Вас зовут? Danil +Привет, Danil +help(print) +Help on built-in function print in module builtins: + +print(*args, sep=' ', end='\n', file=None, flush=False) + Prints the values to a stream, or to sys.stdout by default. + + sep + string inserted between values, default a space. + end + string appended after the last value, default a newline. + file + a file-like object (stream); defaults to the current sys.stdout. + flush +Help on built-in function print in module builtins: + +print(*args, sep=' ', end='\n', file=None, flush=False) + Prints the values to a stream, or to sys.stdout by default. + + sep + string inserted between values, default a space. + end + string appended after the last value, default a newline. + file + a file-like object (stream); defaults to the current sys.stdout. + flush + whether to forcibly flush the stream. + +Help on built-in function input in module builtins: + +input(prompt='', /) + Read a string from standard input. The trailing newline is stripped. + + The prompt string, if given, is printed to standard output without a + trailing newline before reading input. + + If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError. + On *nix systems, readline is used if available. diff --git a/TEMA1/Protokol.txt b/TEMA1/Protokol.txt new file mode 100644 index 0000000..86918a2 --- /dev/null +++ b/TEMA1/Protokol.txt @@ -0,0 +1,58 @@ +#Протокол по Теме 1 <Лазарев Данил Вячеславович> +Python 3.13.3 (tags/v3.13.3:6280bb5, Apr 8 2025, 14:47:33) [MSC v.1943 64 bit (AMD64)] on win32 +Enter "help" below or click "Help" above for more information. +import os +os.chdir('D:\\Lazarev\\Tema1\\') + +================= RESTART: D:/Lazarev/Tema1/Pr0.py ================= +Hello +Your name=Danil +import Pr0 +Hello +Your name=Danil + +================= RESTART: D:/Lazarev/Tema1/Pr0.py ================= +Hello +Your name=Danil +import prb1 +Как Вас зовут? Danil +Привет, Danil +help(print) +Help on built-in function print in module builtins: + +print(*args, sep=' ', end='\n', file=None, flush=False) + Prints the values to a stream, or to sys.stdout by default. + + sep + string inserted between values, default a space. + end + string appended after the last value, default a newline. + file + a file-like object (stream); defaults to the current sys.stdout. + flush +Help on built-in function print in module builtins: + +print(*args, sep=' ', end='\n', file=None, flush=False) + Prints the values to a stream, or to sys.stdout by default. + + sep + string inserted between values, default a space. + end + string appended after the last value, default a newline. + file + a file-like object (stream); defaults to the current sys.stdout. + flush + whether to forcibly flush the stream. + +Help on built-in function input in module builtins: + +input(prompt='', /) + Read a string from standard input. The trailing newline is stripped. +import tdemo_chaos + + + The prompt string, if given, is printed to standard output without a + trailing newline before reading input. + + If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError. + On *nix systems, readline is used if available. diff --git a/TEMA1/Size.png b/TEMA1/Size.png new file mode 100644 index 0000000..daef153 Binary files /dev/null and b/TEMA1/Size.png differ diff --git a/TEMA1/Thisturtleisntwhoitseems.png b/TEMA1/Thisturtleisntwhoitseems.png new file mode 100644 index 0000000..6508bd1 Binary files /dev/null and b/TEMA1/Thisturtleisntwhoitseems.png differ diff --git a/TEMA1/WowWINDOWS.png b/TEMA1/WowWINDOWS.png new file mode 100644 index 0000000..bf2f3c2 Binary files /dev/null and b/TEMA1/WowWINDOWS.png differ diff --git a/TEMA1/clock.png b/TEMA1/clock.png new file mode 100644 index 0000000..cf9ebff Binary files /dev/null and b/TEMA1/clock.png differ diff --git a/TEMA1/fourwindows.png b/TEMA1/fourwindows.png new file mode 100644 index 0000000..75cc6e7 Binary files /dev/null and b/TEMA1/fourwindows.png differ diff --git a/TEMA1/morehelp.png b/TEMA1/morehelp.png new file mode 100644 index 0000000..2c2b686 Binary files /dev/null and b/TEMA1/morehelp.png differ diff --git a/TEMA1/officialassistance.png b/TEMA1/officialassistance.png new file mode 100644 index 0000000..02fcbec Binary files /dev/null and b/TEMA1/officialassistance.png differ diff --git a/TEMA1/point10.png b/TEMA1/point10.png new file mode 100644 index 0000000..3960061 Binary files /dev/null and b/TEMA1/point10.png differ diff --git a/TEMA1/point3.png b/TEMA1/point3.png new file mode 100644 index 0000000..6104b47 Binary files /dev/null and b/TEMA1/point3.png differ diff --git a/TEMA1/point4.png b/TEMA1/point4.png new file mode 100644 index 0000000..04c531e Binary files /dev/null and b/TEMA1/point4.png differ diff --git a/TEMA1/point8.png b/TEMA1/point8.png new file mode 100644 index 0000000..c613b77 Binary files /dev/null and b/TEMA1/point8.png differ diff --git a/TEMA1/pycache.png b/TEMA1/pycache.png new file mode 100644 index 0000000..d768438 Binary files /dev/null and b/TEMA1/pycache.png differ diff --git a/TEMA1/report.md b/TEMA1/report.md new file mode 100644 index 0000000..14edeac --- /dev/null +++ b/TEMA1/report.md @@ -0,0 +1,104 @@ +\# Отчет по теме 1 + +Лазарев Данил, А-01-23 + +\## 1-2. Запуск программы + +\## 3-5. Диалоговое окно + +Некоторые введенные в диалоговое окно инструкции интерпретатора: + +print(\'hello\') hello \![\](point3.png) h=input(\'Your name=\') Your +name=Danil \![\](point4.png) exit() - закрывает интерпретатор + +\## 6-7. Графическая оболочка среды + +\![\](General.png) + +было изучено устройство главного командного окна среды. + +\## 8. Настройка рабочего каталога. import os +os.chdir(\'C:\\\\Users\\\\Professional\\\\Desktop\\\\python-labs\\\\TEMA1\\\\\') +\![\](point8.png) \## 9. Настройка персонализации среды среды. + +\![\](Print.png) + +\![\](Colour.png) + +\![\](Size.png) + +\## 10. Окно редактора Воспользовались окном редактора для написания +кода, результат: + +============================================================ RESTART: +C:/Users/Professional/Desktop/python-labs/TEMA1/Pr0.py +=========================================================== Hello Your +name=Danil \![\](point8.png) \### Были использованы 3 метода запуска +инструкций: 1) Run module 2) Команда import Pr0 3) Кнопка F5 +\![\](start3.png) \## 11. Запуск prb1 + +import prb1 Как Вас зовут? Paulik Привет, Paulik \![\](runprb1.png) \## +12-13. Просмотр pycache \![\](pycache.png) Открыли каталог +\_\_pycache\_\_ и попытались открыть в текстовом редакторе файл +Pr0.cpython-34.pyc -- результат работы компилятора среды. .pyc - это не +текстовые файлы: .pyc файлы содержат скомпилированный байт-код, а не +читаемый текст. Поэтому IDLE, как текстовый редактор, не может правильно +интерпретировать содержимое .pyc файла как текст. Компиляция --- это +процесс перевода исходного кода на языке программирования в машинный +код. Если этого не сделать, компьютер не поймёт, как выполнить +инструкции разработчика. Поэтому мы отдаём компилятору строки кода, а он +сравнивает их со своим словарём, учитывает контекст и выдаёт набор из +нулей и единиц. + +\## 14. Вызов раздела помощи + +help(print) Help on built-in function print in module builtins: + +print(\*args, sep=\' \', end=\'\\n\', file=None, flush=False) Prints the +values to a stream, or to sys.stdout by default. + +sep string inserted between values, default a space. end string appended +after the last value, default a newline. file a file-like object +(stream); defaults to the current sys.stdout. flush whether to forcibly +flush the stream. \![\](Ineedhelp.png) help(print); help(input) Help on +built-in function print in module builtins: + +print(\*args, sep=\' \', end=\'\\n\', file=None, flush=False) Prints the +values to a stream, or to sys.stdout by default. + +sep string inserted between values, default a space. end string appended +after the last value, default a newline. file a file-like object +(stream); defaults to the current sys.stdout. flush whether to forcibly +flush the stream. + +Help on built-in function input in module builtins: + +input(prompt=\'\', /) Read a string from standard input. The trailing +newline is stripped. + +The prompt string, if given, is printed to standard output without a +trailing newline before reading input. + +If the user hits EOF (\*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise +EOFError. On \*nix systems, readline is used if available. +\![\](morehelp.png) + +Рассмотрены иные способы получения раздела помощи. + +F1 \-- index: \![\](officialassistance.png) \![\](searchisover.png) + +\### 15.1 Открыт prb1.py Как Вас зовут? Danil Привет, Danil +\![\](textprb1.png) \### 15.2 Перемещение между окнами и запуск +программы из окна редактора \![\](WowWINDOWS.png) \![\](fourwindows.png) +\### 15.3 Запущена и просмотрена программа tdemo_chaos +\![\](Thisturtleisntwhoitseems.png) \![\](turtleruns.png) + +\### 15.4 Рассмотрение примеров использования графической составляющией +среды Python зашли в предложение «Помощь (Help)» и «Демонстрации (Turtle +Demo)». В появившемся новом окне в меню выберали предложение «Примеры +(Examples)» и из появляющегося списка примеров -- «Часы (Clock)». +Нажмали кнопку «Запуск (Start)» в нижней части окна. \![\](clock.png) +Данные примеры способны помочь в плане структуризации собственного кода +и изучении новых команд. + +\## 16. Выход из среды diff --git a/TEMA1/runprb1.png b/TEMA1/runprb1.png new file mode 100644 index 0000000..d1e85d3 Binary files /dev/null and b/TEMA1/runprb1.png differ diff --git a/TEMA1/searchisover.png b/TEMA1/searchisover.png new file mode 100644 index 0000000..fa22309 Binary files /dev/null and b/TEMA1/searchisover.png differ diff --git a/TEMA1/start3.png b/TEMA1/start3.png new file mode 100644 index 0000000..770c6db Binary files /dev/null and b/TEMA1/start3.png differ diff --git a/TEMA1/textprb1.png b/TEMA1/textprb1.png new file mode 100644 index 0000000..f55428f Binary files /dev/null and b/TEMA1/textprb1.png differ diff --git a/TEMA1/turtleruns.png b/TEMA1/turtleruns.png new file mode 100644 index 0000000..3703bfc Binary files /dev/null and b/TEMA1/turtleruns.png differ