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

Пребарај: #most

当前筛选 #most清除筛选
Стартап слезам не верит

@startupslezamneverit · Post #529 · 29.03.2023 г., 06:42

🚀 Exciting news! Business Incubator MOST is thrilled to announce our partnership with Surge Summit, the premier startup event in the EECCA region and beyond, happening this September! 🌍 As partners, we're proud to support an event that fosters innovation and collaboration, bringing together startups, investors, and ecosystem stakeholders under one roof. 🤝 At Surge Summit, you can expect to experience inspiring talks, engaging panel discussions, hands-on workshops, and exclusive matchmaking sessions with investors. And if you're a startup, don't miss the opportunity to participate in the Surge Summit Pitch Competition, where you could win €20,000! 💰 Join us at this game-changing event and be part of the thriving startup community! Secure your spot now 👉https://www.surgesummit.io/ #SurgeSummit#MOST#Partnership#EECCA#Innovation#Networking#PitchCompetition#Startups

Libertà è ragione

@libertaeragione · Post #4328 · 30.12.2024 г., 11:26

#Elezioni#Croazia#Presidenziali Risultati definitivi: Affluenza: 46,03% Zoran #Milanović (supp. #SDP|S&D): 49,68% Dragan #Primorac (supp. #HDZ|EPP): 19,59% Marija #SelakRaspudić: 9,37% Ivana #Kekin (#Možemo|G/EFA): 9% Tomislav #Jonjić (#HSP|Estrema destra): 5,15% Miro #Bulj (#MOST|Centro-destra): 3,87% Branka #Lozo (#DOMiNO|Destra sovranista): 2,45% Niko #TokićKartelo: 0,9% Necessario un secondo turno tra Milanović e Primorac. In foto la mappa del voto. @OsservatorioEsteri