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

TGINSIGHT SIMILAR POSTS

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

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

Ранее я уже упоминал о другой фишке из ˍˍfutureˍˍ , это оператор деления. from __future__ import division Суть проста. Раньше сложность типа данных результата поределялась типом самого сложного операнда. Например: int/int => int int/float => float В первом случае оба операнда int, значит и результат будет int. Во втором float более сложный тип, поэтому результат будет float. Если нам требуется получить дробное значение при делении двух int то приходилось форсированно один из операндов конверировать в float. 12/float(5) => float Но с новой "философией" это не требуется. В Python3 "floor division" заменили на "true division" а старый способ теперь работает через оператор "//". >>> 3/2 1.5 >>> 3//2 1 То есть теперь деление int на int даёт float если результат не целое число. В классах теперь доступны методы __floordiv__() и __truediv__() для определения поведения с этими операторами. Данный переход описан в PEP238. #pep#2to3#basic

Резултати

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

Пребарај: #curry

当前筛选 #curry清除筛选
Todo sobre cocteleria🥃🍹🍸

@todococktail · Post #404 · 26.08.2021 г., 00:10

Swizzle Stick : @bartender_adriel El Swizzle Stick es una herramienta de #bar , muy utilizada fundamentalmente en la elaboración de #cócteles#Tiki . Es hecha originalmente a partir de las ramas de una especie de árbol llamado " Quararibea Turbinate ", las cuales desprenden un aroma especiado parecido al #curry. Este utensilio se utilizaba en la cocina de las indias occidentales , para elaborar alimentos como salsas o pastas y hacerlos oxigenar antes de la cocción , luego fue llevado a las barras, donde ha perdurado por su elegancia y funcionalidad . En la actualidad los swizzle stick se elaboran de diferentes materiales , como metal , plástico , goma o policarbonato , pero los tradicionales son los fabricados a partir de las ramas de la Quararibea. Esta herramienta logra una dilución controlada y genera frío muy intenso .

🍛Two Iconic South African Curries 🇿🇦 Two of the most famous curries in South African cuisine represent the two port cities — Cape Town on the west coast and Durban on the east. ⚓️ Even their names reflect their origins: 🌶Cape Malay Curry Powder refers to Cape Town’s Malay community, 🔥Durban Curry Masala — to Durban’s Indian community. The Cape curry is slightly sweeter and milder, while the Durban curry is hotter and more vibrant thanks to the addition of Kashmiri red chili. 🌶 Source: https://t.me/africamother/800 #SouthAfrica#Food#Cuisine#Cooking#CapeTown#Durban#Spices#Curry