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

Резултати

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

Пребарај: #waterfront

当前筛选 #waterfront清除筛选
Luxury Lifestyle

@luxury_lifestyle_billionaire_hub · Post #6593 · 26.02.2020 г., 03:19

🌈Goals 💯🔥 - Caribbean ❤️Beachfront Mansion #Luxury#WaterFront#Mansion 📷jeremyaustiin 💁Via @TheLuxuryClub ✔️🔜@R_Group_Official ━━━━━━━━━━━━━━━━━

Luxury Lifestyle

@luxury_lifestyle_billionaire_hub · Post #6563 · 15.02.2020 г., 03:25

🌈WaterFront Mansion ❤️Priced at $18,200,000 #Luxury#Waterfront#Mansion 📷unknown 💁Via @TheLuxuryClub ✔️🔜@R_Group_Official ━━━━━━━━━━━━━━━━━

🌴Victoria Embankment in Durban is one of the city’s most iconic waterfront areas — both a major transport route and a symbol of urban identity. 🌆 📍 Along the Embankment you’ll find: 🔹 the famous John Ross House with the Roma Revolving Restaurant 🔹 Durban’s city hall and court buildings 🔹 the historic yacht basin 🔹 monuments, greenery, and sweeping views of the bay 🚶‍♀️ It’s a perfect place for walks, photos, and taking in the rhythm of Durban’s harbor life — where colonial history meets modern African energy. 📹 Video #Durban#VictoriaEmbankment#SouthAfrica#Cityscape#Waterfront#History#UrbanAfrica#TravelSouthAfrica#Architecture#JohnRossHouse#ExploreDurban