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

Резултати

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

Пребарај: #uselections

当前筛选 #uselections清除筛选
Hong Kong Democracy Movement

@hkdmovement · Post #7914 · 29.11.2024 г., 11:06

美國國會屬下的「美中經濟暨安全檢討委員會」(USCC)於周二(19日)向國會提交2024年報告,涵蓋中美經貿關係、台灣及香港等議題。報告指出,《基本法》23條的立法進一步為港府提供打壓異見的法律工具,香港的法治正受到威脅,法院隨23條的實施被武器化,甚至成為協助俄羅斯等國逃避制裁的中轉站。 #23條立法#USCC#中美角力#美國大選 On Tuesday (19th), the U.S.-China Economic and Security Review Commission (USCC) submitted its 2024 report to Congress, addressing U.S.-China economic relations, Taiwan, and Hong Kong. The report mentions that the implementation of Article 23 of the Basic Law provides the Hong Kong government with legal tools to suppress dissent, threatening the rule of law. It also asserts that Hong Kong has become a transit point for aiding countries like Russia in evading sanctions. #Article23#USCC#USChinaTensions#USElections

Freedom Flotilla Coalition

@FFC_official_channel · Post #224 · 31.08.2024 г., 23:58

This election is not just about what happens within U.S. borders—it’s about the lives of millions around the globe. When you vote, you’re making a statement about where America stands on human rights. History has shown us that you cannot negotiate with leaders who offer nothing but empty promises. Kamala Harris herself said, "Never let anyone tell you who you are. Show them who you are." Well, the Biden-Harris administration has shown us who they are. For ten months, they’ve done nothing but fund the annihilation of Gaza and the West Bank. We cannot accept these empty words when hundreds of thousands of lives are at risk. It’s time to demand real action, not just lip service. Sign the petition to enact an arms embargo on Israel, spread the truth in your community, and mobilize for the sake of humanity. Take Action Now: 🖋️ Sign the Petition: Not Another Bomb! Demand an arms embargo to stop the genocide (in our stories) 📰 Stay Informed: Join the Uncommitted Movement and tell Kamala Harris to stand on the right side of history. Sign up for updates. 🗣️ Spread the Word: Distribute flyers, educate your community, and support candidates who truly stand for human rights. #KillerKamala#BidenHarris#USElections#DNC#ActForGaza#EndTheOccupation#NoMoreEmptyPromises#FreeGaza#FreePalestine#PermanentCeasefire#UNSecurityCouncil#GlobalImpact#FFC#FreedomFlotilla