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

165 строки
4.5 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.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Отчет по теме 1
Симанков Богдан, А-02-23
## Знакомство с интерпретатором и интерактивной оболочкой IDLE
## Пункт 3
```py
>>> print('Hello')
Hello
```
## Пункт 4
```py
>>> h=input('Your name=')
Your name=Bogdan
```
## Пункт 5
```py
>>> exit()
```
## Пункты 6-7
Запущена IDLE PYTHON, изучено устройство главного командного окна среды
## Пункт 8
```py
>>> import os
>>> os.chdir ('C:\\Users\\u207-06\\python-labs\\TEMA1\\')
```
## Пункт 9
Изменил параметры текста в редакторе
## Пункт 10
Создал новый файл
```py
#Privet vsem
#Программа по Теме 1 <Симанков Богдан>
print('Hello')
h=input('Your name=')
import os
os.chdir ('C:\\Users\\u207-06\\python-labs\\TEMA1\\')
```
Модуль был запущен
#Вывод:
```py
= RESTART: C:/Users/u207-06/python-labs/TEMA1/Pr0.py =
Hello
Your name=
```
Файл запускался другим образом:
```py
import Pr0
Hello
Your name=Bogdan
```
## Пункт 11
В консоли вызван prb1.py
```py
>>> import prb1.py
Как Вас зовут? bogdan
Привет, bogdan
```
## Пункт 12
Файл Pr0.cpython-311 был открыт в приложении "Блокнот".
Вывод получился таким:
§
йєhЅ г  уZ —  e d ¦ «   ed¦ « ZddlZ ej d¦ «  dS )ЪHelloz
Your name=й Nz#C:\Users\u207-06\python-labs\TEMA1\)ЪprintЪinputЪosЪchdir© у ъ)C:\Users\u207-06\python-labs\TEMA1\Pr0.pyъ<module>r  sE рр ЂЂgЃЂШЂ%€ СФЂШ Ђ Ђ Ђ Ш ЂР
4С 5Ф 5Р 5Р 5Р 5r
Так получилось, потому что в приложении "Блокнот" не получится считать бинарный код, который выводится из файла.
## Пункт 13
Команды из командного окна сохранены в отдельный файл
## Пункт 14
Python docs - документация по языку
About IDLE - описание среды
>>>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)
F1 -> Указатель -> print() (built-in fuction) выводит справку по функции
## Пункт 15
Открыл файл prb1.py и запустил программу на выполнение:
============== RESTART: C:\Users\u207-06\python-labs\TEMA1\prb1.py =============
Как Вас зовут? Bogdan
Привет, Bogdan
>>>import tdemo_chaos
Выбрал предложения «Помощь (Help)» и «Демонстрации (Turtle Demo)», в примерах указал «Часы (Clock)» и которые вывел на экран циферблат часов.
![Часики](Cloak.png)
## Пункт 16
Завершил работу со средой, выбрав File -> Exit.