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

Резултати

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

Пребарај: #shrovetide

当前筛选 #shrovetide清除筛选
Learn RCRussian🤍💙❤️

@learnrcrussian · Post #4284 · 01.03.2025 г., 12:00

🥞Russian Blini: A Quick Recipe Ingredients: ☆1 cup milk ☆1 cup flour ☆1 egg ☆1 tablespoon sugar ☆Pinch of salt ☆2 tablespoons melted butter (plus extra for greasing) Instructions: 1. Whisk together milk, egg, sugar, and salt. 2. Gradually add flour, whisking until smooth. 3. Stir in melted butter. 4. Let batter rest for 15-30 minutes. 5. Lightly grease a hot pan. 6. Pour 1/4 cup batter onto the pan for each blini. 7. Cook for 1-2 minutes per side, until golden brown. 8. Serve warm with your favourite toppings (sour cream, jam, red caviar). 💢 By the way: • Печь блины [pech bli-ny] doesn't only mean to bake blini but also to skip pebbles on the water. Did you know it? Video: AI Pinterest 😋Yummy! What's your favourite topping/filling for Russian blini? #Russian_cuisine #holidays #Shrovetide 😎 Stay with @learnRCRussian

Learn RCRussian🤍💙❤️

@learnrcrussian · Post #4287 · 02.03.2025 г., 07:19

🌝С Масленицей! Happy Shrovetide! 🔻Maslenitsa (or Shrovetide), a week-long traditional Russian festival before Lent, culminates in Forgiveness Sunday. 🔻This significant day precedes Great Lent, marking a time for asking forgiveness and reconciliation. 🔻The week-long celebration leading up to it features the vibrant Russian tradition of Maslenitsa, including feasts, games like the thrilling greased pole climb, the burning of a winter scarecrow, and joyous performances of folk songs, lively chastushki (short humorous Russian songs), and energetic Russian folk dances. 🔻Maslenitsa remains incredibly popular, showcasing Russia's rich cultural heritage and is celebrated by Russians not only in Russia but in other countries as well. Video: an episode from Russian film Сибирский цирюльник by Nikita Mikhalkov (1998) #Maslenitsa #Shrovetide #holidays #Russian_culture #ForgivenessSunday 😎 Stay with @LearnRCRussian