diff --git a/TEMA1/Cloak.png b/TEMA1/Cloak.png new file mode 100644 index 0000000..95f537b Binary files /dev/null and b/TEMA1/Cloak.png differ diff --git a/TEMA1/Pr0.py b/TEMA1/Pr0.py new file mode 100644 index 0000000..35491ad --- /dev/null +++ b/TEMA1/Pr0.py @@ -0,0 +1,6 @@ +#Privet vsem +#Программа по Теме 1 <Симанков Богдан> +print('Hello') +h=input('Your name=') +import os +os.chdir ('C:\\Users\\u207-06\\python-labs\\TEMA1\\') diff --git a/TEMA1/Vse komandi.py b/TEMA1/Vse komandi.py new file mode 100644 index 0000000..498c4a7 --- /dev/null +++ b/TEMA1/Vse komandi.py @@ -0,0 +1,16 @@ +# Протокол по Теме 1 <Симанков Богдан> + +print('Hello') + +h=input('Your name=') + +import os +os.chdir ('C:\\Users\\u207-06\\python-labs\\TEMA1\\') + +import Pr0 +Hello +Your name=Bogdan + +import prb1 +Как Вас зовут? bogdan +Привет, bogdan diff --git a/TEMA1/report.md b/TEMA1/report.md index e69de29..8350151 100644 --- a/TEMA1/report.md +++ b/TEMA1/report.md @@ -0,0 +1,161 @@ +# Отчет по теме 1 + +Симанков Богдан, А-02-23 + +## Знакомство с интерпретатором и интерактивной оболочкой IDLE + +## Пункт 3 +>>> print('Hello') +Hello + +## Пункт 4 +```py +>>> h=input('Your name=') +Your name=Bogdan +``` + +## Пункт 5 +```py +>>> exit() +``` + +## Пункты 6-7 +Запущена IDLE PYTHON, изучено устройство главного командного окна среды + +## Пункт 8 +>>> 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ЪhЪosЪchdir© у ъ)C:\Users\u207-06\python-labs\TEMA1\Pr0.pyъ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. + + + + + + + \ No newline at end of file