Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

164 строки
4.2 KiB
Markdown

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

# Отчет по теме 1
## Подольский Никита Кириллович, А-01-23
### 1.1 Создание главной папки и подкаталогов
### 1.2 Запуск программы-интерпретатора
### 1.3 Изучение содержания диалогового окна интерпретатора.
После символов приглашения к диалогу ">>>" ввожу инструкцию
```
>>> print('Hello')
```
Нажал клавишу Enter, получил:
```
Hello
```
### 1.4 Ввод инструкции
```
>>> h = input('Your name=')
```
Получил:
```
Your name= Nikita
```
### 1.5 Завершение работы
Ввод команды
```
exit()
```
приводит к завершению работы со средой IDLE
### 1.6 Запуск графической оболочки
### 1.7 Изучил устройство главного командного окна среды
### 1.8 Инструкция настройки рабочего каталога среды
```
>>> import os
os.chdir('/Users/nickpod/Desktop/Podolsky/tema1/')
```
### 1.9 Изучил предложения главного меню
А так же установил в среде: шрифт типа Arial CYR, размер 11, размер начального окна - высота 50 символов, ширина 100 символов, подкраска комментариев - коричневая.
### 1.10 Рассмотрели 3 способа запуска программы.
1) Используя предложение в меню редактора (Run module)
2) Запуск программы на выполнение инструкцией
```
>>> import Pr0.py
```
```
Hello
Your name=Nikita
```
```
>>> import prb1.py
```
```
Как Вас зовут? Nikita
Привет, Nikita
```
3) Нажатие функциональной клавиши F5
### 1.11 Запуск с помощью предыдущей инструкции
Для этого поставил в командном окне IDLE курсор на предыдущую инструкцию и нажал клавишу **Enter**. Обычным редактированием заменил имя **Pr0** на **prb1** и затем нажал Enter для запуска программы.
### 1.12 Изучение текстового редактора и состава рабочего каталога
### 1.13 Создание отчета
### 1.14 Изучения раздела помощи (Help)
```
>>> **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.
>>> **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.
(None, None)
```
### 1.16 Завершение работы
1.     Для этого выбрал предложения «*File*» и « *Exit*».
## 1.17 Контрольные вопросы