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

Резултати

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

Пребарај: #ngc6946

当前筛选 #ngc6946清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #40 · 30.07.2025 г., 08:51

🪐 The faint spiral galaxy NGC 6946, also called the "Fireworks Galaxy," has hosted ten recorded supernovae in the past century—more than any other galaxy of its size. Its dazzling history of stellar explosions illuminates clouds of gas and dust, revealing fresh bursts of star formation and the ongoing cycle of cosmic destruction and rebirth. ✨ #supernovae⚡#galaxies⚡#NGC6946 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #147 · 17.08.2025 г., 16:11

🪐 In the galaxy NGC 6946, astronomers have identified a pair of medium-sized black holes locked in a close orbit, slowly spiraling toward each other. As they draw closer together, they send out ripples in space called gravitational waves—faint yet powerful signals that help scientists trace the invisible dance of these hidden giants across millions of light-years. ✨ #blackholes⚡#NGC6946⚡#gravitationalwaves⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #426 · 15.10.2025 г., 12:21

🪐 In the galaxy NGC 6946, astronomers captured the supernova SN 2017eaw, a brilliant explosion marking the death of a red supergiant star about 22 million light-years away. This supernova was so bright that for a while, it outshone all the other stars in its galaxy combined, scattering newly forged elements like oxygen and silicon into space to seed future generations of stars and planets. ✨ #supernovae⚡#NGC6946⚡#cosmicexplosions⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​