форкнуто от main/python-labs
Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
83 строки
2.7 KiB
Python
83 строки
2.7 KiB
Python
Python 3.13.7 (tags/v3.13.7:bcee1c3, Aug 14 2025, 14:15:11) [MSC v.1944 64 bit (AMD64)] on win32
|
|
Enter "help" below or click "Help" above for more information.
|
|
import os
|
|
os.chdir(r'C:\Users\User-PC\python-labs\TEMA1')
|
|
|
|
====================== RESTART: C:/Users/User-PC/python-labs/TEMA1/Pr0.py =====================
|
|
Hello
|
|
Your name=Dana
|
|
import Pr0
|
|
Hello
|
|
Your name=Dana
|
|
|
|
import prb1
|
|
Как Вас зовут? Dana
|
|
Привет, Dana
|
|
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\User-PC\python-labs\TEMA1\prb1.py =====================
|
|
Как Вас зовут? Dana
|
|
Привет, Dana
|
|
>>> import tdemo_chaos.py
|
|
Traceback (most recent call last):
|
|
File "<pyshell#7>", line 1, in <module>
|
|
import tdemo_chaos.py
|
|
ModuleNotFoundError: No module named 'tdemo_chaos.py'; 'tdemo_chaos' is not a package
|
|
>>> import tdemo_chaos.py
|
|
Traceback (most recent call last):
|
|
File "<pyshell#8>", line 1, in <module>
|
|
import tdemo_chaos.py
|
|
ModuleNotFoundError: No module named 'tdemo_chaos.py'; 'tdemo_chaos' is not a package
|
|
>>> os
|
|
Traceback (most recent call last):
|
|
File "<pyshell#9>", line 1, in <module>
|
|
os
|
|
NameError: name 'os' is not defined. Did you forget to import 'os'?
|
|
>>> import os
|
|
>>> os.getcwd()
|
|
'C:\\Users\\User-PC\\python-labs\\TEMA1'
|
|
os.listdir()
|
|
['Pr0.py', 'prb1.py', 'protocol.py', 'report.md', 'tdemo_chaos.py', '__pycache__', '{1C1A6921-E5A2-429D-A13F-0ED490D361C8}.png', '{C055547F-8056-45D3-A1E5-C93FC85A9E16}.png']
|
|
import tdemo_chaos
|