@sgmrt · Post #1533 · 19.10.2022 г., 00:49
[NSL] Train services are progressively returning to normal. Pls add an additional 10mins travel time from #Newton to #Canberra. - SMRT
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #84 · 13 мај
В продолжение прошлого поста про цифры в мире строк. Почему методы isdigit() и isnumeric() не определяют в строке float и отрицательные значения? Дело в том, что эти методы работают с ЦИФРАМИ, то есть с единичным символом. А строка "-2" или "3.4" это уже ЧИСЛО. То есть не символ а значение, записанное несколькими символами. Все озвученные методы проходятся по каждому символу строки и проверяют их индивидуально. В юникоде есть символы цифр с точками "🄀⒈⒉⒊⒋⒌⒍⒎⒏⒐" Каждая из них это ОДИН СИМВОЛ, поэтому он будет считаться цифрой >>> '⒌'.isdigit(), '⒌'.isnumeric() True, True Но когда мы пишем это выражение в два символа ( 5+точка), то это не работает. >>> '5.'.isdigit(), '5.'.isnumeric() False, False А еще есть такие символы >>> '⑴⑵⑶⑷⑸'.isdigit() True >>> '🄁🄂🄃'.isdigit() True Но они не преобразуются в десятичные цифры >>> '⒈'.isdecimal() False >>> '🄃'.isdecimal() False >>> '⑶'.isdecimal() False #basic
Hashtags
Пребарај: #canberra
@sgmrt · Post #1533 · 19.10.2022 г., 00:49
[NSL] Train services are progressively returning to normal. Pls add an additional 10mins travel time from #Newton to #Canberra. - SMRT
@sgmrt · Post #1531 · 19.10.2022 г., 00:32
[NSL] Train svcs are progressively returning to normal. Pls factor additional 10mins train travel time from #Newton to #Canberra. - SMRT
@sgmrt · Post #1529 · 19.10.2022 г., 00:17
[NSL] Train svcs are progressively returning to normal. Pls factor additional 15mins train travel time from #Newton to #Canberra. - SMRT
@sgmrt · Post #1530 · 19.10.2022 г., 00:17
[NSL]: Train svc from #YioChuKang to #Canberra is progressively returning to normal. Free regular bus & free bus bridging svcs are still available btwn #AngMoKio & #Woodlands. - SMRT
@sgmrt · Post #1528 · 18.10.2022 г., 23:47
[NSL]: Train svc from #YioChuKang to #Canberra is progressively returning to normal. Free regular bus & free bus bridging svcs still available btwn #AngMoKio & #Woodlands - SMRT
@sgmrt · Post #1527 · 18.10.2022 г., 23:34
[NSL]: No train svc from #YioChuKang to #Canberra. Train svc from #JurongEast to #MarinaSouthPier still available. Free regular bus & free bridging bus svcs btwn #AngMoKio and #Woodlands. - SMRT
@sgmrt · Post #1524 · 18.10.2022 г., 22:48
[NSL] UPDATE: Due to a track fault, there will be no train svc from #YioChuKang to #Canberra. Train svc from #JurongEast to #MarinaSouthPier still available Free regular bus & free bridging bus svcs btwn #AngMoKio and #Woodlands. - SMRT
@sgmrt · Post #1526 · 18.10.2022 г., 23:17
[NSL]: No train svc from #YioChuKang to #Canberra. Train svc from #JurongEast to #MarinaSouthPier still available. Free regular bus & free bridging bus svcs btwn #AngMoKio and #Woodlands. Passengers advised to take alternative transport via #CircleLine and #ThomsonEastCoastLine - SMRT