посмотрим на содержимое текущей папки: ``` oleg@oleg-thinkpad:/mnt/c/Users/oleg/pytest$ tree . . ├── d1 │ ├── d2 │ │ ├── d3 │ │ │ ├── f1.txt │ │ │ └── f2.txt │ │ └── f1.txt │ └── f1.txt ├── d4 │ ├── d5 │ └── f4.txt └── d6 ├── d7 │ └── d8 └── f6.txt 8 directories, 6 files ``` сколько строк напечатает код ниже? ```python oleg@oleg-thinkpad:/mnt/c/Users/oleg/pytest$ python3 Python 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> for s, m, th in os.walk('.'): ... hse = os.listdir(s) ... for pizza in hse: ... print(os.path.join(s, pizza)) ... ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up