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

Резултати

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

Пребарај: #tehran

当前筛选 #tehran清除筛选
TƏBRİZ-TURAN-TV𒀭 (TTTv)

@tebriz_turan · Post #96004 · 29.03.2026 г., 18:02

❗️❗️#Tehran Şimali-şərq ərazisində, 9 Farvardin (29 mart) səhər saat 09:00 radələrində baş verən hücumlara aid vətəndaşlardan alınmış görüntülər sosial şəbəkələrdə paylaşılıb. Bizi teleqramda izləyin: https://t.me/tebriz_turan

Hashtags

TƏBRİZ-TURAN-TV𒀭 (TTTv)

@tebriz_turan · Post #96003 · 29.03.2026 г., 18:01

❗️❗️#Tehran Paytaxt şəhərində, Babayi avtomagistralı və Niru-ye Zamini bulvarı (Ləvizan ərazisi) yaxınlığında partlayışdan sonra tüstü qalxdığı bildirilir. Sosial şəbəkələrdə yayılan vətəndaş videosunda hadisənin bu gün səhər saat 09:00 radələrində baş verdiyi qeyd olunur. Bizi teleqramda izləyin: https://t.me/tebriz_turan

Hashtags

TƏBRİZ-TURAN-TV𒀭 (TTTv)

@tebriz_turan · Post #95994 · 29.03.2026 г., 17:47

❗️❗️#Tehran İranın paytaxtı şəhərində, Hərəvı meydanı yaxınlığında yerləşən binaya hücum edildiyi bildirilir. Qətərin telekanalı xəbər verir ki, hücum onların Tehran ofisinin yerləşdiyi binaya edilib. Məlumata görə, raket pilotsuz uçuş aparatından buraxılıb və canlı yayım zamanı binaya düşüb. Hadisə nəticəsində telekanal əməkdaşlarının xəsarət almadığı bildirilsə də, yaxınlıqdakı binalarda azı 10 nəfərin yaralandığı qeyd olunur. Hadisə ilə bağlı görüntülərin sosial şəbəkələrdə yayıldığı bildirilir. Bizi teleqramda izləyin: https://t.me/tebriz_turan

Hashtags

Addis Standard

@addisstandardeng · Post #21040 · 12.01.2026 г., 05:53

Deaths from #Iran protests reach more than 500, rights group says Unrest in Iran has killed more than 500 people, a rights group said on Sunday, as #Tehran threatened to target U.S. military bases if President Donald Trump carries out his renewed threats to intervene on behalf of protesters. With the Islamic Republic's clerical establishment facing the biggest demonstrations since 2022, Trump has repeatedly threatened to get involved if force is used on protesters. According to its latest figures - from activists inside and outside Iran - U.S.-based rights group HRANA said it had verified the deaths of 490 protesters and 48 security personnel, with more than 10,600 people arrested in two weeks of unrest. Iran has not given an official toll and Reuters was unable to independently verify the tallies. Trump was to meet with senior advisers on Tuesday to discuss options for Iran, a U.S..... https://www.reuters.com/business/media-telecom/confronting-protests-iran-vows-strike-back-if-us-attacks-2026-01-11/

Hashtags

Addis Standard

@addisstandardeng · Post #21556 · 28.02.2026 г., 07:23

#Israel launches “pre-emptive” strike on #Iran as explosions reported in #Tehran Israel said it launched a “pre-emptive” military strike on Iran early Saturday, with Iranian state media reporting explosions in parts of Tehran. Israeli Defence Minister Israel Katz said the operation targeted Iran and announced a nationwide state of emergency in Israel, citing the risk of retaliatory attacks. “Following a situational assessment, it was determined that as of today (Saturday), at 08:00, immediate changes will be made to the Home Front Command Guidelines As part of the changes, it was decided to shift all areas of the country from Full Activity to Essential Activity. The guidelines include: a prohibition on educational activities, gatherings, and workplaces, except for essential sectors,” IDF said in a statement posted on X (formerly Twitter). https://www.facebook.com/share/p/17brMhNLB3/?mibextid=wwXIfr

123•••10•••20•••2324
ПретходнаСтраница 1 од 24Следна