@Aetatesolis · Post #4364 · 20.04.2025 г., 18:01
Why Do We Need to Have Sacred Places? #josephcampbell AETATESOLIS
Hashtags
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
Пребарај: #josephcampbell
@Aetatesolis · Post #4364 · 20.04.2025 г., 18:01
Why Do We Need to Have Sacred Places? #josephcampbell AETATESOLIS
Hashtags
@Aetatesolis · Post #4109 · 27.03.2025 г., 09:26
🎬 "Cinema is one of the last remaining places that transports us from the realm of the mundane into the numinous." John Bucher Mythblast 2025 #josephcampbell #cinema #myth AETATESOLIS
Hashtags
@Aetatesolis · Post #4013 · 17.03.2025 г., 06:38
Star Wars deals with the essential problem: Is the machine going to control humanity, or is the machine going to serve humanity? ...Darth Vader is a man taken over by a machine, he becomes a machine, and the state itself is a machine. There is no humanity in the state. What runs the world is economics and politics, and they have nothing to do with the spiritual life. -Joseph Campbell Myth and Meaning: Conversations on Mythology and Life #starwars #darthvader #josephcampbell AETATESOLIS