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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #76 · 27 апр.

Ранее я делал серию постов про битовые операторы. Вот вам ещё один наглядный пример как это используется в Python в модуле re. Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки. pattern = re.compile(r"(\w+)+") words = pattern.search(text, re.DOTALL) А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как. pattern.search(text, re.DOTALL | re.VERBOSE) А теперь смотрим исходники, что находится в этих атрибутах? Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево. >>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]: >>> print(bin(n)) 0b1 0b10 0b100 0b1000 0b10000 0b100000 0b1000000 0b10000000 0b100000000 Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули: 000000001 000000010 000000100 000001000 000010000 000100000 001000000 010000000 100000000 Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45 В общем, это пример применения побитовых операций в самом Python. Теперь вы знаете Python еще немного лучше) #tricks#regex#libs

Резултати

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

Пребарај: #foodie

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

@cookingdish · Post #614 · 16.12.2024 г., 17:48

Fried Chicken Burger Recipe 🍔🍗 → Ingredients: - 2 Chicken breasts, boneless 🐔 - 2 cups Buttermilk 🥛 - 1 Egg 🥚 - 1/2 tsp Cayenne pepper 🌶️ - 1 tbsp Paprika 🌶️ - Salt and pepper to taste 🧂 - 1 cup Flour 🌾 - 2 Hamburger buns 🍞 - 4 slices Bacon 🥓 - Pickles, sliced 🥒 - 1 cup Cabbage, shredded 🥬 - Scallions, chopped 🧅 - 1 tbsp Dill, finely chopped 🌿 - 1/4 cup Kewpie mayo (for both the burger and sauce) 🥪 For the Sauce: - 1 tbsp Creamy horseradish 🌱 - 1 tbsp Mustard 🌕 - 2 tbsp Kewpie mayo 🥪 #DeliciousBurgers#FriedChickenBurger#ComfortFood#HomemadeBurger#Foodie @dishes

Dishes.Cooking.Food

@cookingdish · Post #599 · 01.12.2024 г., 14:36

Classic Chicken Kiev Recipe 🍗🧈 Ingredients: For patties: - 4 lb Chicken fillet 🍗 - Salt/Pepper to taste 🧂 - 4 Large Eggs 🥚 - 200g Flour 🌾 - 200g Breadcrumbs 🍞 - Vegetable oil (for frying) 🛢️ For filling: - 120g Butter 🧈 - 50g Fresh Dill 🌿 - 2 Cloves of Garlic 🧄 - 150g Cheese 🧀 For mashed potato: - 700g Baby Potatoes 🥔 - Salt 🧂 - Pinch of Saffron 🌼 - 40g Butter 🧈 - 1/2 cup Whole Milk 🥛 Perfect for a cozy dinner! 😋 #ChickenKiev#ComfortFood#CookingTime#ClassicRecipes#Foodie @dishes

🇿🇦Cape Town — the world food capital of 2025! 🍽🌍 🥇 In 2024, Cape Town topped the ranking of the best cities in the world for gastronomic tourism by Condé Nast Traveller. 🍣 In 2025, the city is again in the world’s top 10 for food, coming second to Tokyo, while remaining the only representative of South Africa among the leaders 🥂 🌅 According to Time Out, Cape Town is also recognized as the best city in the world 2025, for its food, vibrant atmosphere, stunning views, and the happiness of residents and visitors. 🍷 From fresh seafood to African-inspired culinary masterpieces — Cape Town is a must-visit destination in 2025! #CapeTown#SouthAfrica#GastronomicTourism#Foodie#Travel#WorldCuisine#CondeNastTraveller#TimeOut#Africa

Telegram 公眾索引頻道

@TG_index_channel · Post #907 · 17.02.2020 г., 13:02

標題:Emilia Yenの攝影X美食記事 類別:#公開#頻道#繁中 分類:#興趣#臺灣#網誌#旅遊#地區#中文圈 標籤:#美食#台中美食#台灣旅遊#臺中#台中旅遊#台中景點#台灣美食#photographer#foodie 簡介:🌍Taiwan,Taichung🇹🇼 👉🏻Record every delicious food! 👧🏻記錄生活與旅遊,分享這一切 🗣不定期分享自製LR手機版風格檔 🥞發掘美食🥞台中為主👣😋

Dishes.Cooking.Food

@cookingdish · Post #598 · 30.11.2024 г., 16:41

Grilled Tomahawk Steak with Chimichurri Sauce 🍖🔥 Ingredients for Steak: - 1 Tomahawk steak 🥩 - 2 Tbsp Olive oil 🫒 - 2 Tbsp Butter 🧈 - 1 Sprig of Rosemary 🌿 - 1 Sprig of Thyme 🌱 - 2 Tbsp Montreal steak seasoning or Salt/Pepper 🧂 Chimichurri Sauce: - 1 cup Fresh parsley, finely chopped 🌿 - 1/2 cup Fresh oregano, finely chopped 🍃 - 3 Garlic cloves, minced 🧄 - 1 Shallot onion 🧅 - 1/2 Lemon zest 🍋 - 1/2 Lemon juice 🍋 - 3 Tbsp Red wine vinegar 🍷 - 1/2 cup Olive oil 🫒 - 1 Tsp Red pepper flakes 🌶️ - Salt/Pepper to taste 🧂 #SteakLovers#BBQ#GrillTime#TomahawkSteak#Chimichurri#Foodie#DinnerGoals @dishes

Dishes.Cooking.Food

@cookingdish · Post #608 · 09.12.2024 г., 14:00

🥪 Reuben Sandwich Recipe Ingredients: - 🥩 Pastrami or corned beef - 🍞 Rustic rye bread (2 slices) - 🧀 Swiss cheese (5 slices) - 🥬 Sauerkraut - 🧈 Butter (for spreading) - 🥒 1 Pickled cucumber For the Dressing: - 2 Tbsp 🥫 Mayonnaise - 2 Tbsp 🍅 Ketchup - 1 Tbsp 🍯 Sweet Relish - 1 Tbsp 🌶️ Sriracha - 1 Tsp 🧄 Creamy Horseradish - 1 Tsp 🥤 Worcestershire sauce #ReubenSandwich#HomemadeRecipe#ComfortFood#SandwichLove#Foodie#QuickMeal#LunchIdeas#CookingWithLove @dishes

12
ПретходнаСтраница 1 од 2Следна