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 слични објави

Пребарај: #reactive

当前筛选 #reactive清除筛选
GitHub Trends

@githubtrending · Post #14658 · 01.05.2025 г., 15:00

#java#cloud_native#hacktoberfest#java#kubernetes#reactive Quarkus is a Java framework designed for cloud-native and container-first applications, making Java apps start up much faster and use less memory, which lowers cloud costs. It supports both traditional and reactive programming styles in one framework, so you can develop efficiently without learning new tools. Quarkus uses build-time processing and can compile to native images for even better performance. It integrates popular Java standards and libraries, making development smoother and more enjoyable. This means you can build modern, fast, and cost-effective Java applications easily, especially for Kubernetes and cloud environments[1][2][4][5]. https://github.com/quarkusio/quarkus

GitHub Trends

@githubtrending · Post #14682 · 07.05.2025 г., 13:30

#kotlin#android#awt#compose#declarative_ui#desktop#gui#ios#javascript#kotlin#multiplatform#reactive#swing#ui#wasm#web#webassembly Compose Multiplatform is a Kotlin-based framework by JetBrains that lets you build user interfaces for multiple platforms—iOS, Android, desktop (Windows, macOS, Linux), and web—using mostly shared code. It is based on Jetpack Compose for Android, so you can use similar APIs across platforms, speeding up development and ensuring consistent UI design. iOS support is in beta, web is in alpha, and desktop and Android are stable. You can also access native features like camera or maps easily. This helps you save time, reduce bugs, and create apps that work well everywhere with less effort. https://github.com/JetBrains/compose-multiplatform