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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #84 · 13 мај

В продолжение прошлого поста про цифры в мире строк. Почему методы isdigit() и isnumeric() не определяют в строке float и отрицательные значения? Дело в том, что эти методы работают с ЦИФРАМИ, то есть с единичным символом. А строка "-2" или "3.4" это уже ЧИСЛО. То есть не символ а значение, записанное несколькими символами. Все озвученные методы проходятся по каждому символу строки и проверяют их индивидуально. В юникоде есть символы цифр с точками "🄀⒈⒉⒊⒋⒌⒍⒎⒏⒐" Каждая из них это ОДИН СИМВОЛ, поэтому он будет считаться цифрой >>> '⒌'.isdigit(), '⒌'.isnumeric() True, True Но когда мы пишем это выражение в два символа ( 5+точка), то это не работает. >>> '5.'.isdigit(), '5.'.isnumeric() False, False А еще есть такие символы >>> '⑴⑵⑶⑷⑸'.isdigit() True >>> '🄁🄂🄃'.isdigit() True Но они не преобразуются в десятичные цифры >>> '⒈'.isdecimal() False >>> '🄃'.isdecimal() False >>> '⑶'.isdecimal() False #basic

Hashtags

Резултати

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

Пребарај: #seafoodlovers

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

@cookingdish · Post #624 · 25.12.2024 г., 18:14

Grilled Salmon Steaks 🍣🔥 Recipe Here: Ingredients: 🐟 3 Fresh Salmon steaks 🍁 1/3 cup Maple syrup 🧂 Salt/Pepper to taste 🍋 Lime zest For the sauce: 🥛 1 1/2 Yogurt (plain) 🧄 1 clove of Garlic 🍋 1/2 Lemon (juice) 🫒 Olive oil 🍈 Pomegranate 🌿 Fresh herbs #GrilledSalmon#HealthyEating#SeafoodLovers#EasyRecipes#DinnerIdeas @dishes

Dishes.Cooking.Food

@cookingdish · Post #616 · 18.12.2024 г., 16:17

Grilled Octopus with Potato 🐙🥔 Ingredients: → Potatoes: 500g. Young Potatoes (mix of red and gold) 🥔 3 Tbsp Butter 🧈 1 Tsp Garlic Salt 🧄 Fresh Dill 🌿 → Octopus: 500g. Cooked Octopus 🐙 1/2 Shallot Onion 🧅 2 Tbsp Olive Oil 🫒 2 Tbsp Red Wine Vinegar 🍷 1 Tbsp Capers 🌱 Parsley 🌿 #GrilledOctopus#SeafoodLovers#PotatoRecipe#GourmetDish#CookingWithLove @dishes

Dishes.Cooking.Food

@cookingdish · Post #603 · 04.12.2024 г., 15:15

Coconut Shrimp Recipe🦐🥥 Ingredients: - 1 pound large raw pink shrimp 🦐 - 1 cup flour 🌾 - 2 eggs 🥚 - 1 cup panko breadcrumbs 🍞 - 1 cup grated coconut (unsweetened) 🥥 - 1 teaspoon salt 🧂 - 1/2 teaspoon garlic powder 🧄 - 1/4 teaspoon cayenne pepper 🌶️ - 1/2 lime zest 🍋 - Oil for frying 🛢️ For Sauce: - 1/4 cup sweet ginger chili sauce 🌶️🍯 - 1/4 cup apricot jam 🍑 #CoconutShrimp#SeafoodLovers#EasyRecipes#ShrimpRecipe#TropicalFlavors#FoodieFavorites @dishes

Dishes.Cooking.Food

@cookingdish · Post #593 · 26.11.2024 г., 16:18

🍽️Mussels in White Wine Garlic Sauce 🍷🧄 © Ingredients: 🦪 500g Fresh mussels 🫒 Olive oil 🍷 150ml White wine 🧅 1 Shallot onion 🧈 50g Unsalted butter 🌶️ 1/2 Serrano pepper 🍅 1 Branch of cherry tomatoes 🧄 2 Cloves of garlic 🌿 Fresh parsley 🍋 1/2 Lemon zest 🧂 Salt and black pepper to taste #SeafoodLovers#MusselsRecipe#WhiteWineSauce#GarlicLovers#EasyDinner#FoodieFavorites @dishes