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

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #345 · 9 окт.

Функция dir() - удобна для получения списка атрибутов у любого объекта. Ранее я писал про функцию __dir__() в модуле (не путайте её с переменной __all__(), которая указывает список объектов для импорта если встречается конструкция from module import *). Скорее всего вы уже знаете как использовать функцию dir(). Любой объект может реализовать метод __dir__() чтобы указать список имеющийхся и динамических атрибутов. И функция dir() поможет получить список этих атрибутов. >>> dir(str) ['__add__', '__class__', '__contains__', ...] У этой функции есть еще один способ применения. Её можно вызвать без аргумента, и в таком случае она вернёт список имён в текущем неймспейсе. >>> dir() ['__builtins__', '__doc__', '__file__', ...] >>> def test(): >>> x = 1 >>> print(dir()) >>> test() ['x'] #basic#tricks

Резултати

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

Пребарај: #microlensing

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

@cosmomyst · Post #393 · 08.10.2025 г., 18:21

🪐 Astronomers using the OGLE survey have discovered a population of rogue planets, including a free-floating world called OGLE-2012-BLG-1323, which might be smaller than Earth and drifts alone through the Milky Way. Rogue planets like this have no parent star, traveling in permanent darkness—detected only by the way they briefly bend and magnify light from distant stars, a phenomenon known as gravitational microlensing. ✨ #rogueplanets⚡#exoplanets⚡#microlensing⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #752 · 25.04.2026 г., 22:21

🪐 One of the most massive rogue planets discovered so far is OGLE-2016-BLG-1190Lb, found through a process called gravitational microlensing—when a planet’s gravity briefly magnifies the light from a distant star as it passes in front. This giant, roughly 13 times the mass of Jupiter, drifts through space far from any star, showing that even enormous planets can roam the galaxy alone, undetectable except when they create these rare cosmic magnifying events. ✨ #rogueplanets⚡#microlensing⚡#giants⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​