форкнуто от main/python-labs
Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
110 строки
2.8 KiB
Markdown
110 строки
2.8 KiB
Markdown
# Отчет по теме 1
|
|
|
|
Васильев Илья А-03-23
|
|
|
|
## 1-2 Запуск
|
|

|
|

|
|
## 3-5 Работа с диалоговым окном
|
|
|
|
```py
|
|
print('Hello')
|
|
Hello
|
|
|
|
h=input('Your name=')
|
|
Your name=ilia
|
|
|
|
exit()
|
|
```
|
|
## 6-7 Запуск и изучение интерактивной графической оболочки
|
|

|
|
## 8 Настройка рабочего каталога
|
|
|
|
```py
|
|
import os
|
|
os.chdir('C:\\Users\\Nick\\labs\\TEMA1\\')
|
|
```
|
|
|
|
## 9 Изучено меню и заданы предложеные настройки
|
|

|
|
## 10 Запущена программа через текстовый редактор оболочки IDLE тремя способами
|
|
|
|
```py
|
|
# Программа по теме 1 Васильев И.Н.
|
|
print('Hello')
|
|
h=input('Your name=')
|
|
import os
|
|
os.chdir('C:\\Users\\Nick\\labs\\TEMA1\\')
|
|
```
|
|
## 11 Запуск prb1
|
|
|
|
```py
|
|
import prb1
|
|
Как Вас зовут? Ilia
|
|
Привет, Ilia
|
|
```
|
|
|
|
## 12-13 Открыт и изучен pycache
|
|
|
|
Компиляция необходима для оптимизации работы
|
|

|
|
|
|
## 14 Изучение раздела помощи Help
|
|
|
|
```py
|
|
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.
|
|
```
|
|
|
|
.PNG)
|
|
|
|
## 15 Выполнение последовательности действий
|
|
Совершены махинации с окнами
|
|
|
|
Открыта программа из файла
|
|
Результат выполнения tdemo_chaos:
|
|
|
|

|
|
|
|
Результат выполнения clock:
|
|

|
|
|
|
## 16 Завершена работа |