@bestwallpapes · Post #3332 · 01.04.2025 г., 13:36
@Bestwallpapes #Food#Yummy
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
Пребарај: #yummy
@bestwallpapes · Post #3332 · 01.04.2025 г., 13:36
@Bestwallpapes #Food#Yummy
@instavine · Post #1084 · 11.03.2017 г., 14:00
#food#yummy#hungry🍿🍬 ------------ @instavine
@TgDict · Post #212 · 08.11.2023 г., 15:44
#food#picture#yummy https://t.me/fporn https://t.me/restaurantfood https://t.me/onlyfood https://t.me/dailyfoodporn https://t.me/foodovik https://t.me/foodrumedia https://t.me/aiqing
@ThemesM8 · Post #293 · 04.05.2022 г., 17:50
https://t.me/addtheme/Cookies_ThemesM8 🍬@ThemesM8🍭 #light#android#desktop#cookie#cookies#cute#pastel#sweet#white#green#yummy#colors#colorful#theme#themes#telegram_theme
@cookingdish · Post #577 · 11.11.2024 г., 15:21
Caramelized Shallots Pumpkin Pasta 🎃🍝 Recipe for 2 servings Ingredients: - 1/2 Hokkaido pumpkin 🎃 - 250 g pasta 🍝 - 250 g shallots 🧅 - Vegan butter for frying 🧈 - 25 ml maple syrup 🍁 - 100 g vegan cream cheese 🌱 - 300 ml vegetable stock 🥕🍲 - Pinch of salt and pepper 🧂 Toppings - Parsley, chopped 🌿 Preparation: 1. Dice the pumpkin and blanch for 10 minutes 🍲 2. Cook the pasta 🍝 3. Fry the shallots in butter, add maple syrup for a caramelized touch 🍁🧅 4. Deglaze with vegetable stock, add the pumpkin, stir, and simmer briefly 🎃🍲 5. Stir in the cream cheese, then mix in the pasta 🌱🍝 6. Top with fresh parsley and enjoy! 🌿✨ #VeganPasta#PumpkinSeason#CaramelizedShallots#ComfortFood#FallRecipes#PlantBased#EasyMeals#Yummy#PastaNight @dishes
@the_intelligent_investors · Post #1194 · 14.02.2024 г., 04:23
💎hadyo com | JBEZOS029 🎉#reels#top#reelsinstagram#trends#best#fyp#trendingreels#reelsinsta#usa#newyorknewyork#repost#regrann#youtube#yoga#yummy#newyork#foryou#cryptocurrency#crypto