@QuietWorld · Post #6675 · 10.10.2019 г., 00:00
Fair play isprimarilynot blaming others for anything that is wrong with us. — Eric Hoffer – #quotes#truth#selfdevelopment @quietworld🍃
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
Пребарај: #selfdevelopment
@QuietWorld · Post #6675 · 10.10.2019 г., 00:00
Fair play isprimarilynot blaming others for anything that is wrong with us. — Eric Hoffer – #quotes#truth#selfdevelopment @quietworld🍃
Hashtags
@englishmeta1 · Post #94 · 14.03.2022 г., 08:51
Learn to refuse! Such a skill can be useful to get away from pressure and extortion from manipulators, especially if you are a soft, compliant person and are afraid to refuse someone, even at the cost of your own comfort and peace of mind. Start with a softer option: “I don’t think”, “I won’t succeed”, “I can’t”. To begin with, it is important to understand that there is the very possibility of failure, then it will become easier. But in the end, you need to come to a firm “no” without explaining your refusal or justifying your decision to others. *** Next post: Life Tips ♡ ㅤ ⎙ㅤ ⌲ 🔔 ˡᶦᵏᵉ ˢᵃᵛᵉ ˢʰᵃʳᵉ unmute #psychology#Selfdevelopment 📝 Requests: @Guidancee_bot ©@This_is_psychology
Hashtags
@QuietWorld · Post #6683 · 10.10.2019 г., 09:30
Often we change..; jobs, friends and spouses.. instead of ourselves. — Akbarali H. Jetha – #quotes#reflection#selfdevelopment @quietworld🍃