@sgmrt · Post #1757 · 04.07.2023 г., 23:24
[EWL] UPDATE: Train svc btwn #TuasLink and #TuasWestRoad has resumed. Free regular bus and bridging bus services have ceased. - SMRT
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
Пребарај: #tuaslink
@sgmrt · Post #1757 · 04.07.2023 г., 23:24
[EWL] UPDATE: Train svc btwn #TuasLink and #TuasWestRoad has resumed. Free regular bus and bridging bus services have ceased. - SMRT
Hashtags
@sgmrt · Post #1756 · 04.07.2023 г., 23:13
[EWL]: Due to a factory fire near #TuasLink, there is no train svc btwn #TuasLink and #TuasWestRoad. Free regular bus and bridging bus services are available btwn #TuasLink and #TuasWestRoad. Train service is still available. - SMRT
Hashtags
@sgmrt · Post #1755 · 04.07.2023 г., 22:53
[EWL]: Due to a factory fire near #TuasLink, there is no train svc btwn #TuasLink and #TuasWestRoad. Free regular bus and bridging bus services are available btwn #TuasLink and #TuasWestRoad. Train service is still available. - SMRT
Hashtags
@sgmrt · Post #1754 · 04.07.2023 г., 22:38
[EWL]: Due to a factory fire near #TuasLink, there is no train svc btwn #TuasLink and #TuasWestRoad. Free regular bus and bridging bus services are available btwn #TuasLink and #TuasWestRoad. - SMRT
Hashtags
@sgmrt · Post #1753 · 04.07.2023 г., 22:14
[EWL]: Due to a factory fire near #TuasLink, there is no train svc btwn #TuasLink and #TuasWestRoad. Free regular bus and bridging bus services are available btwn #TuasLink and #TuasWestRoad. - SMRT
Hashtags
@sgmrt · Post #1752 · 04.07.2023 г., 21:58
[EWL]: Due to a factory fire near #TuasLink, there is no train svc btwn #TuasLink and #TuasWestRoad. Free regular bus services are available btwn #TuasLink and #TuasWestRoad. - SMRT
Hashtags
@sgmrt · Post #1751 · 04.07.2023 г., 21:33
[EWL]: Due to a factory fire near #TuasLink, there is no train svc btwn #TuasLink and #TuasWestRoad. Free regular bus services are available btwn #TuasLink and #TuasWestRoad. - SMRT
Hashtags
@sgmrt · Post #1397 · 24.12.2021 г., 22:39
[EWL] UPDATE: Free regular bus & free bridging bus svcs btwn #TuasLink and #JooKoon have ended. - SMRT
@sgmrt · Post #1395 · 24.12.2021 г., 22:11
[EWL] UPDATE: Free regular bus & free bridging bus svcs btwn #JooKoon and #TuasLink. - SMRT
@sgmrt · Post #1399 · 24.12.2021 г., 22:56
[EWL] CLEARED: Train svcs btwn #TuasLink and #TuasCrescent have resumed. - SMRT
Hashtags
@sgmrt · Post #1398 · 24.12.2021 г., 22:40
[EWL] UPDATE: Train svc is available btwn #TuasLink and #TuasCrescent. - SMRT
Hashtags
@sgmrt · Post #1396 · 24.12.2021 г., 22:11
[EWL]: Due to a signalling fault, pls add 15mins train travel time btwn #TuasLink and #TuasCrescent. - SMRT
Hashtags