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

Резултати

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

Пребарај: #dessert

当前筛选 #dessert清除筛选
Dishes.Cooking.Food

@cookingdish · Post #930 · 22.08.2025 г., 13:05

Fondant au chocolat! Ingredients: 200 g 70% dark chocolate 2 cubes white chocolate 2 eggs 2 egg yolks 100 g butter - softened 2 ½ tbsp all purpose flour 1 tbsp cocoa powder 4 ½ tbsp. granulated sugar pinch of salt For serving: Powdered sugar Blueberries and strawberries #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #927 · 20.08.2025 г., 13:01

Crepes with banana and Nutella! Ingredients: *3 eggs *a pinch of salt *2 tbs sugar as desired *2 cup of warm milk *1 cup of all purpose flour *2 tbs of butter For serving: *banana *Nutella *powdered sugar #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #919 · 12.08.2025 г., 13:04

Nectarine Tart!🍑🥮 Ingredients: *6 Nectarines (hard) *1 tbsp Butter *Maple syrup For Tart (2 crust): *2.5 cup Flour *Pinch of salt *4 tbsp Sugar *Butter (0.5 Ib. / 225 gr.) *1 tbsp Vinegar *4 tbsp Water #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #850 · 04.06.2025 г., 11:01

Apple Strudel Recipe🍏🥧 Ingredients: - 250g all-purpose flour 🌾 - 100ml water 💧 - 1 egg 🥚 - 20g vegetable oil 🛢 - 1 pinch of salt 🧂 For the filling: - 4 Granny Smith apples, peeled and sliced 🍏 - Lemon juice 🍋 - 100g dried cranberries 🫐 - 100g breadcrumbs 🍞 - 50g butter (melted, for brushing the dough and sautéing the breadcrumbs) 🧈 - 50g candied pecans, chopped 🌰 - 1 tsp cinnamon 🌟 - 70g sugar 🍬 - 1 scoop of ice cream 🍨 #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #705 · 07.02.2025 г., 14:05

🇬🇧Ingredients for Cauliflower Crunch Chocolate Mousse 🌿For the Mousse: - 🥦 400 g cauliflower - 🍫 150 g vegan chocolate - 🍯 3 tbsp agave syrup 🌿For Toppings: - 🍫 Cacao powder - 🍫 Chopped chocolate #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #687 · 29.01.2025 г., 14:06

🇬🇧Ingredients for Stuffed Dates 🌿Main Ingredients: - 🍇 12 Medjool dates - 🧀 Brie cheese, sliced into small pieces - 🍖 Prosciutto, 12 strips - 🌰 12 walnuts - 🍯 2 tbsp honey - 🌿 Thyme leaves #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #681 · 26.01.2025 г., 14:02

🇬🇧Ingredients for Rugelach 🌿Dough: - 🧈 200 g butter - 🍶 200 g sour cream - 🌾 400 g all-purpose flour - 🌼 1 tsp vanilla - 🥄 1 tsp baking powder 🌿For the Filling: - 🍬 150 g dulce de leche - 🍏 150 g apple paste - 🌰 50 g walnuts - 🍬 100 g brown light sugar - 🌿 1 tsp cinnamon - 🍋 2 tbsp lemon juice #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #674 · 23.01.2025 г., 14:02

🇬🇧Ingredients for Almond Blueberry Teacakes 🌿For the Teacakes: - 🧈 190 g unsalted butter, at room temperature - 🍬 190 g granulated sugar - 🍋 1 tbsp lemon zest - 🥚 4 large eggs - 🌰 190 g almond flour - 🌾 45 g all-purpose flour - 🥄 1/4 tsp baking powder - 🧂 1/8 tsp salt - 🍋 1/4 cup lemon juice - 🫐 200 g fresh blueberries 🌿For the Icing: - 🍬 160 g confectioners' sugar - 🍋 2 1/2 tbsp lemon juice #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #663 · 17.01.2025 г., 14:04

🇬🇧Ingredients for Apple Strudel 🌿Dough: - 🌾 250 g all-purpose flour - 💧 100 ml water - 🥚 1 egg - 🛢 20 g vegetable oil - 🧂 1 pinch of salt 🌿Filling: - 🍏 4 Granny Smith apples, peeled and sliced - 🍋 Lemon juice - 🍇 100 g dried cranberries - 🍞 100 g breadcrumbs - 🧈 50 g butter (melted, for brushing the dough and sautéing the breadcrumbs) - 🌰 50 g candied pecans, chopped - 🌿 1 tsp cinnamon - 🍬 70 g sugar - 🍨 1 scoop of ice cream #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #661 · 16.01.2025 г., 14:05

🇬🇧Ingredients for Walnut Cookie 🌿Dough: - 🌾 450 g all-purpose flour - 🧈 200 g melted butter - 🥚 2 eggs - 🍬 150 g sugar - 🧂 1/4 tsp salt - 🌼 Vanilla to taste - 🥄 1 tsp baking powder 🌿Filling: - 🥛 1 can boiled condensed milk - 🌰 Roasted almonds (or any nuts) #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #483 · 18.08.2024 г., 15:56

Mini Cheesecakes with Cherry 🍒 Ingredients: *800g. Farmer cheese *2 Eggs *4 Tbsp Sugar *4 Tbsp Semolina *2 Tbsp All Purpose Flour *Vanilla powder *Pinch of salt *400g. Fresh Cherry For filling: *200 g. Cream cheese *1 Egg yolk *40g. Sugar *Butter #dessert @dishes

Hashtags

123•••67
ПретходнаСтраница 1 од 7Следна