| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| try: | ||
| os.mkdir(dir_loc) | ||
| print(' -- папка успешно создана') | ||
| except: |
There was a problem hiding this comment.
не надо так делать, если не знаете какая ошибка может возникнуть пишите Exception
Sorry, something went wrong.
| # Напишите скрипт, отображающий папки текущей директории. | ||
| path = os.getcwd() | ||
| def view_directories(path): | ||
| for _ in os.listdir(path): |
There was a problem hiding this comment.
listdir показывает все файлы, не только папки
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Выполнил задания easy и normal урок 5