@LiveHealthy · Post #6897 · 26.12.2024 г., 22:37
#healthy
Hashtags
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
Пребарај: #healthy
@LiveHealthy · Post #6897 · 26.12.2024 г., 22:37
#healthy
Hashtags
@ncdcgov · Post #4443 · 05.03.2025 г., 13:36
#Measles infection can lead to complications, especially in young children & those with weakened immune systems. Ensure the completion of routine immunisation for your children or wards to keep them safe and #healthy. #TakeResponsibility
@ncdcgov · Post #4154 · 09.01.2024 г., 08:32
#Measles infection can lead to complications, especially in young children & those with weakened immune systems. Ensure the completion of routine immunisation for your children or wards to keep them safe and #healthy. #TakeResponsibility
@ncdcgov · Post #4112 · 04.12.2023 г., 12:29
Unvaccinated young children are at the highest risk of #measles infection and its complications. Ensure the completion of routine immunisation for your children or wards to keep them safe and #healthy. #TakeResponsibility
@ncdcgov · Post #3677 · 05.01.2023 г., 11:58
Unvaccinated young children are at the highest risk of #measles infection and its complications. Ensure the completion of routine immunisation for your children or wards to keep them safe and #healthy. #TakeResponsibility
@ncdcgov · Post #3789 · 31.03.2023 г., 08:52
Vaccination is the best prevention measure against #CerebrospinalMeningitis. Ensure you complete the routine immunisation for your children or wards to keep them safe and #healthy. #TakeResponsibility
@ncdcgov · Post #4336 · 22.07.2024 г., 09:39
Vaccination is the best prevention measure against #CerebrospinalMeningitis. Ensure you complete Nigeria's routine immunisation schedule for your children or wards to keep them safe and #healthy. #DefeatMeningitis
@dzdigital3 · Post #18992 · 11.09.2025 г., 13:16
Détails and Price 👇 https://s.click.aliexpress.com/e/_EH5wZa6 Adjust Back Stretcher For Back Spine Lumbar Support Massage Muscle Relax Stretcher Posture Therapy Corrector Airbag Level High #neck#massager#healthy#healthylifestyle#massagetherapist
@dzdigital3 · Post #18991 · 11.09.2025 г., 13:11
Détails and Price 👇 https://s.click.aliexpress.com/e/_EHHIpge Portable Neck Massager for Neck Pain, Intelligent Portable Neck Massager with Heat Function, USB Charging Neck Relax Massager #neck#massager#healthy#healthylifestyle#massagetherapist
@yuristipravda · Post #753 · 24.03.2026 г., 07:04
Ну что, с коровами почти покончили, возьмёмся за пчёл: Лабораторно выращенные медоносные пчелы, созданные лишь для того, чтобы быть рабами и умирать рано. Генеральный директор ForgeBee Адам Гамильтон говорит, что компания использует ИИ и робототехнику для выращивания партий одноразовых пчел, которые будут отправляться пчеловодам и фермерам. Он говорит: "Их поведение будет манипулироваться с помощью комбинации химических веществ, которые по сути заставят пчел чаще собирать пыльцу". Эти "единицы", как они их называют, будут иметь срок жизни от двух до трех недель, посвященных опылению сельскохозяйственных культур. Кто-нибудь еще обеспокоен этим? А если эти измененные, лабораторно выращенные пчелы окажутся в дикой природе... что может пойти не так? Читайте: https://www.brownfieldagnews.com/news/lab-grown-honeybees-could-be-future-of-food-production/ #LabGrownHoneybees#honeybees#bees#pollinators#pollination#beekeepers#food#health#healthy#holistic#holistichealth#gmofreecanada#gmofreeusa#toxinfreeusa https://t.me/VseWeda/88080