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

Пребарај: #culturaldiversity

当前筛选 #culturaldiversity清除筛选

Let’s celebrate the beauty and richness of global cultures — together! 📖“Dikorosy” (Wild Harvest) Fairy Tale Festival ✨ Special program: Tales from Afar 🗓 Saturday, May 24 🕔 5:00 PM – 6:00 PM 📍 Mayakovsky Park, Yekaterinburg 🔸 Story lineup: 1. The Guinea Fowl and the Caiman — Gabon 2. The Lonely Heart — Angola 3. The Magic Orange Tree — Haiti 4. The Boy and the Lion — Guinea 5. A Story About Mom — Côte d’Ivoire 6. The Cave Paintings — Algeria 7. The Mango and the Orange Tree — Benin 8. The Wisdom of Young Kofi — Mali 9. The Secret of the Golden Nile — Sudan 10. Ayo’s Dreams — Benin 📌 Organized with support from the Honorary Consulate of South Africa in Yekaterinburg 🌍 In celebration of Africa Day 💚 Come listen, wonder, and discover something new! 🌐 Official website: https://dikorosyfest.ru/ #Dikorosy#TalesFromAfar#AfricaDay#CulturalDiversity#Yekaterinburg#AfricanStories#StorytellingFestival#MayakovskyPark#DiscoverUrals

🎉May 21 — World Day for Cultural Diversity for Dialogue and Development Let’s celebrate the beauty and richness of global cultures — together! 📖“Dikorosy” (Wild Harvest) Fairy Tale Festival ✨ Special program: Tales from Afar 🗓 Saturday, May 24 🕔 5:00 PM – 6:00 PM 📍 Mayakovsky Park, Yekaterinburg 🌍Hear magical stories from Africa and the Caribbean, told in Russian by international students living in Yekaterinburg — a rare and inspiring experience for all ages. 🔸 Story lineup: 1. The Guinea Fowl and the Caiman — Gabon 2. The Lonely Heart — Angola 3. The Magic Orange Tree — Haiti 4. The Boy and the Lion — Guinea 5. A Story About Mom — Côte d’Ivoire 6. The Cave Paintings — Algeria 7. The Mango and the Orange Tree — Benin 8. The Wisdom of Young Kofi — Mali 9. The Secret of the Golden Nile — Sudan 10. Ayo’s Dreams — Benin 📌 Organized with support from the Honorary Consulate of South Africa in Yekaterinburg 🌍 In celebration of Africa Day 💚 Come listen, wonder, and discover something new! 🌐 Official website: https://dikorosyfest.ru/ #Dikorosy#TalesFromAfar#AfricaDay#CulturalDiversity#Yekaterinburg#AfricanStories#StorytellingFestival#MayakovskyPark#DiscoverUrals

IELTS|Newspapers & Magazines|English

@emagzinewspars · Post #9342 · 15.10.2025 г., 02:02

#Beijing_Review🇨🇳📕[PDF]⬇️ 2 #October2025 #Weekly_Magazines For learning, for free(dom). @backupofmagazines In this issue , the spotlight shines on #Xinjiang 70, celebrating seven decades of transformation in the autonomous region—from economic health to cultural heritage. Global topics include #PalestineRecognition, evolving #ChinaUS relations, and the healing potential of dialogue via the #XiangshanForum. Special features explore #RuralRevitalization and tech-driven change in Qingdao and Fujian, as #ScienceInnovation takes center stage. From the vibrant Grand Bazaar to a Somali expat’s vision, this issue captures both regional pride and global dialogue. #BeijingReview#CulturalDiversity#BeltAndRoad#EducationMatters#ChinaPerspective