TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #203 · 18 јан.

Бывает начинающие в процессе обучения создают файлы с именем модуля который они изучают. В результате на тестовых запусках ничего не работает😱 Всё потому, что появилась коллизия имён. Например, изучаете вы модуль datetime, и создаёте с таким именем файл (ну логично же😄) прямо в рабочей директории. Потом, при попытке импортировать datetime модуль, из-за приоритета импорта будет импортирован файл из рабочий директории а не оригинальная библиотека. Ведь имя файла это суть имя модуля! А знаете ли вы, что не все стандартные модули можно так перезаписать? Коллизии имён не подвержены builtin модули. Они всегда стоят на первом месте в приоритете импорта, поэтому их нельзя заменить. Полный список таких модулей можно посмотреть в списке sys.builtin_module_names. То есть, вы сломаете весь Python если назовёте свой модуль os или site, но если назовёте time или gc то ничего страшного не случится))) Тем не менее, никогда не называйте модули уже занятыми именами!!!⚠️ Я всегда рекомендую всем своим файлам делать именной префикс из 2-3 символов. Например я называю свои проекты так: pw_project_name pw_ui_tools.py pw_something/main.py Либо под ситуацию tst_scriptname.py (не "test" чтобы не подхватывал pytest) dbg_script.py maya_ui.py hou_menu_tools.py И искать проще, и коллизий нет. #tricks#basic

Резултати

Пронајдени 55 слични објави

Пребарај: #russiannature

当前筛选 #russiannature清除筛选
Learn RCRussian🤍💙❤️

@learnRCRussian · Post #5582 · 20.10.2025 г., 12:00

The Northern Lights have reached the Moscow region! 🔻In a spectacularly rare event, the aurora borealis was visible even near Moscow last weekend. 🔻The heavenly glow was observed in the Arkhangelsk, Kostroma, and Moscow regions. The sky was also lit up with green and orange light in the Leningrad region. 🔻A stunning natural light show, much further south than usual! Videos, photos: the Internet #Russiannature 😎RCR | Support | Boost

Learn RCRussian🤍💙❤️

@learnrcrussian · Post #4604 · 30.04.2025 г., 16:00

💙Dolphins near the coast of Balaklava, Crimea 🇷🇺В этом видео всё прекрасно: изумительная палитра моря, сливающегося с небом, тёмные силуэты скользящих в воде плавников, угрюмые скалы. Так хочется быть частью этого мира! А вам нравится? 🇬🇧Everything in this video is perfect: the amazing palette of the sea merging with the sky, the dark silhouettes of fins gliding through the water, the somber cliffs. I so want to be a part of this world! Do you like it? Video: kulikov_alex5 #Russiannature 😎RCRussian | Support | Boost

Russian Embassy in Asmara

@rusembasmara · Post #678 · 09.04.2026 г., 09:31

🇷🇺RUSSIAN NATURE🇷🇺 🏞️The Putorana Plateau is one of the most mysterious and picturesque places in Russia. Located in the northwestern part of Krasnoyarsk Krai, this region feels untouched by time: vast basalt plateaus, deep canyons and thousands of waterfalls define its landscape. 💧It is often called «the land of ten thousand lakes and waterfalls». In terms of waterfall density, the plateau has no equal in Russia. One of them, the Talnikovy Waterfall, is considered the highest in the country. 🏅The Putorana Nature Reserve is a UNESCO World Heritage Site that attracts researchers, photographers and seekers of unexplored wilderness. 🏔️Many people dream of visiting this region. For hundreds of kilometers, there are only mountainous areas, deep gorges and intricate networks of rivers, lakes and waterfalls. Helicopter tours and river rafting are especially popular, though some travelers also venture out on hiking expeditions. 🤗Visit Russia and set out on a journey! #RussianNature#Russia

Learn RCRussian🤍💙❤️

@learnRCRussian · Post #5468 · 22.09.2025 г., 19:35

🧡Somewhere in Russia... • На закате (НА + Prepositional) [na za-ka-te] At sunset, at dusk • Вечером (adverb) [ve-chi-ram] In the evening • На исходе дня (НА + Prep.+Gen.) [na is-khho-di dnya] At the end of the day ✨Всем добра! #Russiannature #useful_vocabulary 😎RCR | Support | Boost

Learn RCRussian🤍💙❤️

@learnRCRussian · Post #6249 · 01.03.2026 г., 16:00

Аптекарский огород Apothecary's Garden 🌷This is a garden where medicinal plants are grown. 🌷Historically, these were pharmacy gardens established by Peter the Great in the early 1700s to grow herbs for medicines. 🌷Today, it refers to Moscow's oldest botanical garden (founded 1706), now a branch of Moscow State University and a popular park where you can see beautiful flowers, exotic plants, and even a 300-year-old larch tree! Video: moscowmi #brief_and_interesting #Russiannature 🟠RCR | Support | Boost

ПретходнаСтраница 1 од 5Следна