форкнуто от main/python-labs
Сравнить коммиты
2 Коммитов
Автор | SHA1 | Дата |
---|---|---|
|
35c17bfcde | 4 дней назад |
|
9659d0e112 | 4 дней назад |
@ -1,5 +0,0 @@
|
|||||||
#Программа по теме 1 Лыковой Е.А
|
|
||||||
print("Hello")
|
|
||||||
h=input("Your name=")
|
|
||||||
import os
|
|
||||||
os.chdir("C:\\Users\\u207-06\\Desktop\\Lykova")
|
|
@ -1,60 +0,0 @@
|
|||||||
#Протокол по теме 1 Лыковой Е.А
|
|
||||||
import os
|
|
||||||
os.chdir("C:\\Users\\u207-06\\Desktop\\Lykova\\TEMA1\\")
|
|
||||||
|
|
||||||
============= RESTART: C:/Users/u207-06/Desktop/Lykova/TEMA1/Pr0.py ============
|
|
||||||
Hello
|
|
||||||
Your name=Lizp
|
|
||||||
import Pr0
|
|
||||||
Hello
|
|
||||||
Your name=Lizp
|
|
||||||
import prb1
|
|
||||||
Как Вас зовут? Лизп
|
|
||||||
Привет, Лизп
|
|
||||||
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)
|
|
||||||
|
|
||||||
============ RESTART: C:\Users\u207-06\Desktop\Lykova\TEMA1\prb1.py ============
|
|
||||||
Как Вас зовут? Лизп
|
|
||||||
Привет, Лизп
|
|
||||||
import tdemo_chaos
|
|
@ -1,114 +0,0 @@
|
|||||||
# Отчет по теме 1
|
|
||||||
|
|
||||||
Лыкова Елизавета, А-01-23
|
|
||||||
|
|
||||||
1. Создание копии репозитория
|
|
||||||
|
|
||||||
$ git clone http://uit.mpei.ru/git/LykovaYA/python-labs.git
|
|
||||||
|
|
||||||
1.1 Клонирование форка на рабочий стол, перебазирование личного форка на исходный репозиторий
|
|
||||||
|
|
||||||
u207-06@w10prog-02 MINGW64 ~/Desktop/python-labs (main)
|
|
||||||
$ git remote add upstream http://uit.mpei.ru/git/main/python-labs.git
|
|
||||||
|
|
||||||
u207-06@w10prog-02 MINGW64 ~/Desktop/python-labs (main)
|
|
||||||
$ git fetch upstream
|
|
||||||
From http://uit.mpei.ru/git/main/python-labs
|
|
||||||
* [new branch] main -> upstream/main
|
|
||||||
|
|
||||||
u207-06@w10prog-02 MINGW64 ~/Desktop/python-labs (main)
|
|
||||||
$ git stash push
|
|
||||||
No local changes to save
|
|
||||||
|
|
||||||
u207-06@w10prog-02 MINGW64 ~/Desktop/python-labs (main)
|
|
||||||
$ git rebase upstream/main
|
|
||||||
Current branch main is up to date.
|
|
||||||
|
|
||||||
u207-06@w10prog-02 MINGW64 ~/Desktop/python-labs (main)
|
|
||||||
$ git stash pop
|
|
||||||
No stash entries found.
|
|
||||||
|
|
||||||
2. Запуск Питона
|
|
||||||
|
|
||||||
2.1 Изучение интерпретатора
|
|
||||||
|
|
||||||
>>> print("Hello")
|
|
||||||
Hello
|
|
||||||
|
|
||||||
>>> h=input("Your name=")
|
|
||||||
Your name=Lizp
|
|
||||||
|
|
||||||
>>> exit()
|
|
||||||
|
|
||||||
3. Ввод интрукций настройки рабочего каталога среды
|
|
||||||
|
|
||||||
import os
|
|
||||||
os.chdir("C:\\Users\\u207-06\\Desktop\\Lykova\\TEMA1\\")
|
|
||||||
|
|
||||||
4. Создание файла "Программа по теме 1", её запуск
|
|
||||||
|
|
||||||
#Программа по теме 1 Лыковой Е.А
|
|
||||||
print("Hello")
|
|
||||||
h=input("Your name=")
|
|
||||||
import os
|
|
||||||
os.chdir("C:\\Users\\u207-06\\Desktop\\Lykova")
|
|
||||||
|
|
||||||
|
|
||||||
5. Запуск программы prb1.py из рабочего каталога
|
|
||||||
|
|
||||||
5.1 Попытка открыть файл Pr0.cpython-311 из каталога __pycache__.
|
|
||||||
При попытке открыть файл в текстовом редакторе человек вместо привычных букв увидит странные символы и/или надписи NUL.
|
|
||||||
Так происходит из-за того, что информация записана в двоичном коде. Компиляция программ происходит для преобразования текста в машинный код, оптимизации.
|
|
||||||
|
|
||||||
6. Создание файла "Протокол по теме 1"
|
|
||||||
|
|
||||||
6.1 Изучение раздела Help.
|
|
||||||
В этом разделе можно найти актуальную информацию про IDLE, по типу версии, обновлений, лицензии. Так же здесь присутсвует краткий гайд для использования программы.
|
|
||||||
В наличии так же демо-версия программы TURTLE и справочник по Python.
|
|
||||||
|
|
||||||
6.2
|
|
||||||
|
|
||||||
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)
|
|
||||||
|
|
||||||
7. Перемещение между различными окнами программы благодаря Window. В TURTLE присутсвуют готовые примеры программ с доступным кодом.
|
|
Загрузка…
Ссылка в новой задаче