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

TGINSIGHT SIMILAR POSTS

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

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

Первая директория в sys.path 🔸 Когда вы запускаете Python-интерпретатор в интерактивном режиме, в системные пути (sys.path) в самое начало добавляется текущая рабочая директория >>> for path in sys.path: ... print(f'"{path}"') "" "/usr/lib/python37.zip" "/usr/lib/python3.7" ... Первая строка пустая, что и означает текущую рабочую директорию. 🔸 Если вы запускаете интерпретатор передавая скрипт как аргумент, то история получается иная. На первом месте будет директория в которой располагается скрипт. А текущая рабочая директория игнорируется. Пишем скрипт с таким содержанием: # script.py import sys for path in sys.path: print(f'"{path}"') Запускаем python3 /home/user/dev/script.py Получаем "/home/user/dev" "/usr/lib/python37.zip" "/usr/lib/python3.7" ... 🔸 Если вы запускаете скрипт по имени модуля то на первом месте будет домашняя директория текущего юзера python3 -m script "/home/user" "/usr/lib/python37.zip" "/usr/lib/python3.7" ... Скрипт должен быть доступен для импорта На что это влияет? На видимость модулей для импорта. Если вы ждёте, что, запустив скрипт по пути, сможете импортировать модули из текущей рабочей директории, то вы ошибаетесь. Придётся добавлять путь os.getcwd() в sys.path самостоятельно или заранее объявлять переменную PYTHONPATH. #basic

Hashtags

Резултати

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

Пребарај: #cyclone

当前筛选 #cyclone清除筛选
Voir de ses propres yeux

@voir_yeux · Post #11884 · 23.02.2026 г., 15:19

🇲🇬🇷🇺 Deux avions Il-76 du ministère russe des Situations d'urgence ont acheminé une aide humanitaire à Madagascar, touché par le cyclone Gezani. C’est ce qu’a rapporté à TASS le service de presse du ministère. #aide#cyclone#russie

Amazing Geography 🌍

@amazingeo · Post #166 · 03.09.2025 г., 03:12

🌍 In 2023, Cyclone Freddy became the longest-lasting tropical cyclone ever recorded, traveling over 12,000 kilometers and affecting countries from Madagascar to Mozambique with powerful winds and rain. ✨ #cyclone⚡#disaster⚡#weather⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #399 · 21.10.2025 г., 15:31

🌍 The highest recorded wind gust at ground level reached 408 km/h during Australia's 1996 Tropical Cyclone Olivia. This extreme burst shattered previous records for wind speed on Earth. ✨ #meteorology⚡#cyclone⚡#wind⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Voir de ses propres yeux

@voir_yeux · Post #11709 · 12.02.2026 г., 14:33

🇲🇬 Le gouvernement malgache a décrété "l’état de sinistre national" après le passage du cyclone Gezani, a rapporté le journal Madagascar Tribune. D’après les dernières données du Bureau national de gestion des risques et des catastrophes (BNGRC), le cyclone a fait 36 morts, 374 blessés et 6 disparus. Au total, plus de 257.000 personnes ont été affectées par ses conséquences, et près de 9.000 Malgaches ont été contraints de quitter leur domicile. La ville de Toamasina, la deuxième du pays après la capitale et principal port, est la plus touchée: elle a été détruite à 80%. #madagascar#cyclone#conséquences

Amazing Geography 🌍

@amazingeo · Post #473 · 24.11.2025 г., 12:31

🌍 In 2023, Cyclone Mocha became one of the strongest storms ever recorded in the North Indian Ocean, with winds over 250 km/h, causing severe flooding and reshaping coastal landscapes. ✨ #disaster⚡#cyclone⚡#flooding⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Voir de ses propres yeux

@voir_yeux · Post #11699 · 11.02.2026 г., 16:59

🇲🇬Au moins 20 personnes ont été tuées et 33 blessées par le cyclone tropical Gezani dans la ville de Toamasina, dans l'est de Madagascar. C'est ce qu'indique dans un communiqué le Bureau national de gestion des risques de catastrophes, obtenu par TASS. Le décompte des victimes et l'évaluation des dégâts sont en cours. Les districts d'Atsinanana, d'Analamanga, d'Analanjirofo et d'Alaotra-Mangoro ont été les plus durement touchés. La population de Madagascar avait été prévenue à l’avance de l’approche de Gezani, dont la vitesse du vent à l’épicentre atteint 250 km/h. Les cours dans les écoles ont été suspendus. La compagnie aérienne nationale Madagascar Airlines a annulé tous ses vols du 11 février. #madagascar#cyclone#gezani

Amazing Geography 🌍

@amazingeo · Post #581 · 19.01.2026 г., 20:31

🌍 In 2023, Cyclone Biparjoy spun over the Arabian Sea for nearly two weeks—a rare “very severe cyclonic storm” to last so long in this region, with winds impacting coasts over 1,000 kilometers apart. ✨ #cyclone⚡#disaster⚡#winds⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

港島西。Channel

@islandwest84 · Post #40141 · 09.10.2023 г., 01:27

大片見紅!颱風小犬喪咬港南半部 港九局部日雨量已逾400mm!易冧山泥 詳情👉https://channelchk.com/a/14039 天氣師李鈺廷提提你 #weather#science#storm#typhoon#cyclone#天氣#氣象#科普#科學#天文台#李鈺廷#風暴#颱風#熱帶氣旋#季候風#小犬#Koinu

港島西。Channel

@islandwest84 · Post #40137 · 08.10.2023 г., 00:10

8號風球預告!天文台10.8 12-2pm改發 料小犬下午颱風級掠港100km內 多處烈風 詳情👉https://channelchk.com/a/14023 天氣師李鈺廷提提你 #weather#science#storm#typhoon#cyclone#天氣#氣象#科普#科學#天文台#李鈺廷#風暴#颱風#熱帶氣旋#季候風#小犬#Koinu