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 слични објави

Пребарај: #spacecraft

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

@cosmomyst · Post #122 · 12.08.2025 г., 16:11

🪐 Boeing’s Starliner spacecraft is designed to ferry astronauts to and from the International Space Station, using advanced guidance and life support systems for safe, repeated flights. Starliner’s ability to land on dry ground instead of water sets it apart from many earlier capsules, marking a new phase in reusable human spaceflight as we reach for destinations beyond low-Earth orbit. ✨ #Starliner⚡#spacecraft⚡#technology⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Crypto M - Crypto News

@CryptoM · Post #65091 · 11.04.2026 г., 00:15

🚀 NASA Confirms Safe Return of Artemis II Spacecraft NASA has confirmed the safe return of the Artemis II spacecraft to Earth. According to Odaily, the mission marks a significant milestone in the ongoing exploration efforts. The successful completion of this mission paves the way for future endeavors in space exploration. #NASA#ArtemisII#Spacecraft#SpaceExploration#Milestone#MissionSuccess