GoloshchapovDY 14 часов назад
Родитель 9e7891884a
Сommit de0eb4286b

@ -14,13 +14,17 @@
# Пункт 3 Введение пробных команд
print("hello")
hello
# Пункт 4 Вводим еще одну инструкцию
h = input('Your name = ')
Your name = Dima
h
'Dima'
# Пункт 5 Завершение работы интерпретатора
@ -35,6 +39,7 @@ exit()
# Пункт 8 Настройка рабочего каталога
import os
os.chdir('C:\\Users\\Дмитрий\\OneDrive\\Рабочий стол\\Goloshchapov\\python-labs\\TEMA1')
# Пункт 9 Настройки(Options)
@ -49,14 +54,19 @@ exit()
#Программа по теме 1 <Голощапов Дмитрий Евгеньевич>
print('Hello')
h=input('Your name=')
import os
os.chdir('C:\\Users\\Дмитрий\\OneDrive\\Рабочий стол\\Goloshchapov\\python-labs\\TEMA1')
Она делает следующий вывод:
======= RESTART: C:\Users\Дмитрий\OneDrive\Рабочий стол\Goloshchapov\python-labs\TEMA1\Pr0.py ======
Hello
Your name=
Другой вариант запуска:
@ -64,11 +74,14 @@ Your name=
import Pr0
hello
Your name =
При нажатии f5 в активном окне редактора:
======= RESTART: C:\Users\Дмитрий\OneDrive\Рабочий стол\Goloshchapov\python-labs\TEMA1\Pr0.py ======
hello
Your name =
# Пункт 11 Запуск программы из рабочего каталога
@ -78,12 +91,14 @@ Your name =
import prb1
Как Вас зовут? Dima
Привет, Dima
# Пункт 12 Изучение рабочего каталога
Файл Pr0.cpython-310.pyc открыт в Блокноте.
o
ЛFёhэ г  @ s& e d ѓ edѓZddlZe dЎ dS )ZHelloz
Your name=й NuW C:\Users\Дмитрий\OneDrive\Рабочий стол\Goloshchapov\python-labs\TEMA1)ЪprintЪinputЪosЪchdir© r r х^ C:\Users\Дмитрий\OneDrive\Рабочий стол\Goloshchapov\python-labs\TEMA1\Pr0.pyЪ<module> s 
@ -111,13 +126,14 @@ Python Docs - документация по языку
Turtle Demo - окно работы и помощь модуля для работы с графикой turtle
Проверка команды:
Проверка команд:
help (print)
Help on built-in function print in module builtins:
print(...)
print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)
Prints the values to a stream, or to sys.stdout by default.
Optional keyword arguments:
file: a file-like object (stream); defaults to the current sys.stdout.
@ -131,7 +147,6 @@ Help on built-in function print in module builtins:
print(...)
print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)
Prints the values to a stream, or to sys.stdout by default.
Optional keyword arguments:
file: a file-like object (stream); defaults to the current sys.stdout.
@ -143,10 +158,8 @@ Help on built-in function input in module builtins:
input(prompt=None, /)
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.
@ -176,4 +189,4 @@ Help - Turtle Demo - clock - Start выводит на экран графиче
которые можно брать за основу собственных программ, изменять или реализовывать
свои идеи.
16. Завершена работа со средой: File - exit
# Пункт 16. Завершена работа со средой: File - exit
Загрузка…
Отмена
Сохранить