TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

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

Резултати

Пронајдени 1 слични објави

Пребарај: #verticalgarden

当前筛选 #verticalgarden清除筛选

The Salling Roofgarden - an extension to the popular Salling Rooftop - is now open. Surrounded by trees and hundreds of plants, the new garden located on the roof of the historic 6-story department store adds 1,400m²/15,070 ft² to the existing rooftop, offering citizens and visitors a piece of #urbannature in the busy city center. A #verticalgarden on the facade facing the pedestrian shopping street runs through all six stories, connecting the roof to the street level. The entire city can be viewed from the new lookout platform 35 meters/115 feet above the city’s streetscape while skywalks make it possible for people to move between the different facilities, even offering a peek into the department store's ground floor. The Salling Roofgarden is done by Henning Larsen in collaboration with Ramboll group and A.Enggaard Photos by Martin Schubert. #arch_shovel#architecture#henninglarsen