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

Резултати

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

Пребарај: #wong

当前筛选 #wong清除筛选
Pensive|

@PensivePost · Post #5072 · 04.04.2021 г., 12:28

You are, Fence of seduction, Till I vent all my senses veins pump as it tenses. Essence of a gentle, love is moment less. Time's not a crisis if we did it like we meant this. Don't regret me as I fill me in your soul. I wish to be your's, and not to be Yet, another expenses. #wong#review

Hashtags

Pensive|

@PensivePost · Post #5070 · 04.04.2021 г., 09:59

I have an odd impulse, of losing myself in the crowd. I believed that's how I found myself, but then I realised. I just wanted to be found. Beyond lust and pleasures, I have a jubilant admiration, for this weird ripple of sensitivities, that can only be triggered by people so rare. It's almost angelic. In a world that survives on each other, It's only a miracle how I live on my own. Comprehending pain from people, Discerning despair. I was just correlating. To what it made me, And what you've become. I guess, Its been a trial to see how to be the man, that I pretend to be. #wong#review#newuser