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

Резултати

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

Пребарај: #eff

当前筛选 #eff清除筛选
403 Forbidden

@forbid_403 · Post #283 · 14.03.2024 г., 06:31

EFF:呼吁议会停止对 Tik Tok 的封禁。 EFF 称议会不应根据社交媒体平台的运营者所属国家对其进行封禁;无论谁在收集数据,个人隐私都应受到保护。 https://act.eff.org/action/tell-congress-stop-the-tiktok-ban #EFF#TikTok#US

Addis Standard

@addisstandardeng · Post #21262 · 31.01.2026 г., 10:43

News: #Ethiopia submits 2028 AFCON bid, seeking fourth hosting after 50-year gap Ethiopia has formally submitted a bid to host the 2028 Africa Cup of Nations (#AFCON), seeking to stage the continental tournament for a fourth time and for the first time in more than five decades, according to a report by state-owned media citing the Ethiopian Football Federation (#EFF). The report said the bid was officially lodged with the Confederation of African Football (#CAF), marking Ethiopia’s return to contention for hosting the tournament it last staged in 1976. Ethiopia previously hosted AFCON in 1962, 1968, and 1976, and won the title on home soil in 1962. If awarded hosting rights, Ethiopia would become the joint second country to stage the Africa Cup of Nations the most times, behind only Egypt (5). Bahiru Tilahun, Secretary General of the Ethiopian Football Federation, was quoted in... https://www.facebook.com/AddisstandardEng/posts/pfbid02RBrfdanpeSSvrR4tcTWEyWrsRV4djoQDikrUvipckET9MttjzYM8t98rmQ3EG2o3l