4.2 KiB
Отчет по теме 1
Лыкова Елизавета, А-01-23
- Создание копии репозитория
$ 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.1 Изучение интерпретатора
print("Hello") Hello
h=input("Your name=") Your name=Lizp
exit()
- Ввод интрукций настройки рабочего каталога среды
import os os.chdir("C:\Users\u207-06\Desktop\Lykova\TEMA1\")
- Создание файла "Программа по теме 1", её запуск
#Программа по теме 1 Лыковой Е.А print("Hello") h=input("Your name=") import os os.chdir("C:\Users\u207-06\Desktop\Lykova")
- Запуск программы prb1.py из рабочего каталога
5.1 Попытка открыть файл Pr0.cpython-311 из каталога pycache. При попытке открыть файл в текстовом редакторе человек вместо привычных букв увидит странные символы и/или надписи NUL. Так происходит из-за того, что информация записана в двоичном коде. Компиляция программ происходит для преобразования текста в машинный код, оптимизации.
- Создание файла "Протокол по теме 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)
- Перемещение между различными окнами программы благодаря Window. В TURTLE присутсвуют готовые примеры программ с доступным кодом.