форкнуто от main/python-labs
Сравнить коммиты
Ничего общего в коммитах. 'main' и 'main' имеют совершенно разные истории.
@ -1,5 +0,0 @@
|
|||||||
#Программа по Теме 1 <ФИО студента>
|
|
||||||
print('Hello')
|
|
||||||
h=input('Your name=')
|
|
||||||
import os
|
|
||||||
os.chdir('C:\\Users\\u207-06\\Desktop\\python-labs\\TEMA1\\')
|
|
До Ширина: | Высота: | Размер: 124 KiB |
До Ширина: | Высота: | Размер: 54 KiB |
До Ширина: | Высота: | Размер: 49 KiB |
@ -1,81 +0,0 @@
|
|||||||
# Отчет по теме 1
|
|
||||||
|
|
||||||
Баранов Эмиль, А-03-23
|
|
||||||
|
|
||||||
## 1 Основы языка программирования Python
|
|
||||||
|
|
||||||
## 1.1 Работа с command line
|
|
||||||
>>> print('Hello')
|
|
||||||
Hello
|
|
||||||
>>> h=input('Your name=')
|
|
||||||
Your name=Emil
|
|
||||||
>>> h
|
|
||||||
'Emil'
|
|
||||||
exit()
|
|
||||||
## 1.2 Настройки рабочего каталога IDLE среды Python
|
|
||||||
import os
|
|
||||||
os.chdir('C:\\Users\\u207-06\\Desktop\\python-labs\\TEMA1\\')
|
|
||||||
Изменил шрифт, размер начального окна, цвет комментариев на коричневый
|
|
||||||

|
|
||||||
## 1.3 Работа с программными файлами
|
|
||||||
--Создал программный файл Pr0.py с текстом:
|
|
||||||
#Программа по Теме 1 <ФИО студента>
|
|
||||||
print('Hello')
|
|
||||||
h=input('Your name=')
|
|
||||||
import os
|
|
||||||
os.chdir('C:\\Users\\u207-06\\Desktop\\python-labs\\TEMA1\\')
|
|
||||||
--Запустил модули различными способами
|
|
||||||
import Pr0
|
|
||||||
Hello
|
|
||||||
Your name=
|
|
||||||
========================== RESTART: C:/Users/u207-06/Desktop/python-labs/TEMA1/Pr0.py =========================
|
|
||||||
Hello
|
|
||||||
Your name=import Pr0
|
|
||||||
import prb1.py
|
|
||||||
Как Вас зовут? Эмиль
|
|
||||||
Привет, Эмиль
|
|
||||||
## 1.4 Выполняем различные команды
|
|
||||||
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.
|
|
||||||
- Запустил на выполнение программу из файла tdemo_chaos.py
|
|
||||||

|
|
||||||
- Изучил демонстрации
|
|
||||||

|
|
Загрузка…
Ссылка в новой задаче