@mountstorm · Post #692 · 05.08.2023 г., 16:00
Twas the night before finals, And all through the college, The students were praying For the last minute knowledge. #yeah
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #197 · 4 јан.
Подразумеваемые неймспейсы или неявные пакеты. Этот функционал добавлен в Python 3.3 Что он означает? Ранее, до 3.3 пакетами считались лишь директории, в которых есть файл __init__.py. Этот файл одновременно являлся свидетельством того, что директория это Python-пакет, и служил "телом" этого пакета. То есть местом, где можно написать код, как это делается внутри модуля. Этот код исполняется в момент импорта пакета, так что его принято называть "код инициализации пакета". Начиная с версии 3.3 Любая директория считается пакетом и Python будет пытаться использовать любую директорию для импорта. Конечно, не любую в файловой системе, а только те что находятся в sys.path. Это значит, что теперь __init__.py нужно делать только если: 🔸 вам требуется создать код инициализации пакета 🔸 нужна совместимость со старыми версиями Python На мой взгляд это немного упрощает разработку, делает её чище, но с другой стороны убивает некоторую однозначность происходящего. Например, я создал репозиторий со своей библиотекой и рядом положил код примеров или тестов. repo_name/ my_library/ __init__.py main.py examples/ exam1.py exam2.py В этом репозитории пакетом является только my_library, остальные директории это не пакеты, это просто дополнительный код в файлах. Директория examples не добавлена в sys.path, в ней нет рабочих модулей. Но если она лежит рядом с my_library, то Python вполне сможет импортнуть из неё модули, так как посчитает что examples это валидный пакет. Конечно, пример несколько надуманный. Никто не будет добавлять корень репозитория в sys.path. Но, я думаю, суть ясна. Иногда директория это просто директория а не пакет! #basic#pep
Пребарај: #yeah
@mountstorm · Post #692 · 05.08.2023 г., 16:00
Twas the night before finals, And all through the college, The students were praying For the last minute knowledge. #yeah
Hashtags
@mountstorm · Post #670 · 25.07.2023 г., 07:14
We need to be educated! #yeah
Hashtags
@mountstorm · Post #657 · 18.07.2023 г., 10:34
Always hate comes from below #yeah
Hashtags
@mountstorm · Post #653 · 16.07.2023 г., 04:16
That Eye Blunt Injury The incident of a blunt eye injury during a football game caused me to spend a week alone in the hospital, which led to the discovery of my sense of self. I associate mostly with being a student, as I have always been passionate about learning and developing my knowledge. However, the experience of the injury made me realize that being cautious and aware of my surroundings is also a defining part of my identity. As a student, I am constantly learning and growing, but as someone who has suffered an injury, I am also aware of my vulnerability. This experience has taught me to be more careful and attentive in my day-to-day life, especially when participating in physical activities. Overall, the experience has helped me to redefine my identity and to appreciate the importance of taking care of myself. #yeah
Hashtags
@mountstorm · Post #638 · 08.07.2023 г., 05:23
Today is the last day, last night, last late-night mafia gatherings, last dinner together, last secret friend gift, last team building, and last memorable conversations. #yeah
Hashtags
@mountstorm · Post #630 · 05.07.2023 г., 12:47
🥷 If you can climb the real mountain, why can't you climb your imagined ones? #yeah
Hashtags
@mountstorm · Post #593 · 25.05.2023 г., 10:20
Pain is temporal, remembering valuable ones is rare. #yeah
Hashtags
@mountstorm · Post #259 · 29.06.2022 г., 02:09
#yeah
Hashtags
@mountstorm · Post #203 · 06.06.2022 г., 05:35
😌 5 Exams out of 6, I got from all '5' mark #yeah
Hashtags
@mountstorm · Post #170 · 30.05.2022 г., 08:15
Summer. High School graduates still have the aftertaste of the graduation party and now are preoccupied with summer holidays. While my bro, a 9th grade graduate, can chill for the entire season, he will work on his academic interests and chill. Along with participating in extracurricular summer programs, he will be reading books, however cliche it sounds. Reading a book is like investing in real-estate. As long as you get the right book/estate, you are in a slowly-but-surely growing business. No need for a solid schedule or a measurable goal - how many pages to read daily, specific deadlines - in the beginning. Planning is important, I'd say, when and if there is already a vivid picture of what exactly you need and want to read. I started the process with whatever I had in hand - a fairy-tale collection, a magazine, or a random novel. Bit by bit, it's been getting more clear what genre/author's style is mine and what book to read next. The difference between a "good" book and a "bad" one for me is the first ten pages. Asking for advice on what to read from others is also better done in later stages, I believe. Suggested books are better added to the foundation laid by you. #yeah
Hashtags
@mountstorm · Post #187 · 04.06.2022 г., 18:20
Saturday classes 😬 = Vocab game 😋 Accuracy is fine, bro, calm down) #mountstorm#yeah
Hashtags
@mountstorm · Post #253 · 22.06.2022 г., 09:54
🥳 Finally got a certificate of Basic secondary Education with Honours 9th specialized school. P.s/ бордовый аттестат 😮💨 #oqiganlaga_mazza#yeah
Hashtags