From dbc43c2100dbeefa554aca8b09904fab290743a5 Mon Sep 17 00:00:00 2001 From: "FilippovDY (FilippovDY)" Date: Sat, 13 Sep 2025 14:18:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D1=87=D1=91=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TEMA1/report.md | 87 +++++++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/TEMA1/report.md b/TEMA1/report.md index fb232c8..17287d7 100644 --- a/TEMA1/report.md +++ b/TEMA1/report.md @@ -7,22 +7,22 @@ # 3. Изучение содержания открывшегося окна # 4. Ввод инструкции ->>>print('Hello') - Hello + >>>print('Hello') + Hello # 5. Ввод ещё одной инструкции ->>>h=input('Your name=') - Your name=Daniil + >>>h=input('Your name=') + Your name=Daniil # 6. Завершение работы с интерпретатором ->>>exit() + >>>exit() # 7. Запуск интерактивной графической оболочки IDLE # 8. Введение инструкции настройки рабочего каталога среды ->>>import os ->>>os.chdir('C:\\Users\\danii\\Desktop\\Filippov\\Tema1\\') + >>>import os + >>>os.chdir('C:\\Users\\danii\\Desktop\\Filippov\\Tema1\\') # 9. Изучение выпадающих меню, изменение типа, размера шрифта; изменение размера начального окна; изменение цвета комментариев @@ -32,7 +32,7 @@ # 10. Создание программного файла Pr0.py в рабочем каталоге, и вставка в него использованных ранее инструкций. Запуск инструкций на выполнение. # 11. Рассмотрение других способов запуска программы на выполнение: - с помощью инструкции import Pr0: + с помощью инструкции import Pr0: >>>import Pr0 hello @@ -49,15 +49,15 @@ # 12. Запуск программы prb1.py Из консоли вызван файл prb1.py ->>>import prb1 -Как Вас зовут? Daniil -Привет, Daniil + >>>import prb1 + Как Вас зовут? Daniil + Привет, Daniil # 13. Изучение каталога _pycache_. Открытие файла Pr0.cpython-34.pyc в текстовом редакторе - этот файл результат работы компилятора среды. Содержание файла Pr0.cpython-34.pyc: -у - nEµhѕ г  уP • \ " S 5 \" S5 rSSKr\R " S5 g)ЪHelloz -Your name=й Nz&C:\Users\danii\Desktop\Filippov\Tema1\)ЪprintЪinputЪhЪosЪchdir© у Ъ,C:\Users/danii/Desktop/Filippov/Tema1\Pr0.pyЪr  s& рб Ђg„Щ € УЂЫ Ш ‡‚Р 7Х 8r + у + nEµhѕ г  уP • \ " S 5 \" S5 rSSKr \R " S5 g)ЪHelloz + Your name=й Nz&C:\Users\danii\Desktop\Filippov\Tema1\)ЪprintЪinputЪhЪosЪchdir© у Ъ,C:\Users/danii/Desktop/Filippov/Tema1\Pr0.pyЪr  s& рб Ђg„Щ € УЂЫ Ш ‡‚Р 7Х 8r Компиляция программ происходит для того, чтобы преобразовать исходный код в машинный код, понятный компьютеру. @@ -67,45 +67,46 @@ Your name=й Nz&C:\Users\danii\Desktop\Filippov\Tema1\)ЪprintЪinputЪh # 15. Изучение раздела помощи Help # 16. Ввод инструкции обращения к оперативной помощи по функции print() - вывод значений указываемого объекта на заданное устройство. ->>>help(print) -Help on built-in function print in module builtins: + >>>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. + print(...) + print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) + Prints the values to a stream, or to sys.stdout by default. + Optional keyword arguments: + file: a file-like object (stream); defaults to the current sys.stdout. + sep: string inserted between values, default a space. + end: string appended after the last value, default a newline. + flush: whether to forcibly flush the stream. - 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. # 17. Убедился в том, что можно в одной строке ввести несколько инструкций, разделяя их запятыми ->>>help(print), help(input) -Help on built-in function print in module builtins: + >>>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. + print(...) + print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) + Prints the values to a stream, or to sys.stdout by default. + Optional keyword arguments: + file: a file-like object (stream); defaults to the current sys.stdout. + sep: string inserted between values, default a space. + end: string appended after the last value, default a newline. + flush: whether to forcibly flush the stream. - 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: -Help on built-in function input in module builtins: + input(prompt=None, /) + 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. -input(prompt='', /) - Read a string from standard input. The trailing newline is stripped. + (None, None) - The prompt string, if given, is printed to standard output without a - trailing newline before reading input. К оперативной помощи также можно обращаться через клавишу F1, в разделе "Указатель" находится список терминов языка. Нахождение в этом списке строки print() (built-in function), изучение справки.