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

Резултати

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

Пребарај: #ncdcstrategy

当前筛选 #ncdcstrategy清除筛选

As we contend with national, regional, and global health security threats, our #NCDCStrategy 2023-2027 captures our collective vision and commitment to deliver on our mandate. Are you set to join us for the launch? 🗓️Tuesday 21 November 2023 Get notified 🔗bit.ly/NCDCStrategyLaunch #Vision2Action

We are very excited to present to you: The Nigeria Centre for Disease Control and Prevention 2023-2027 STRATEGY AND IMPLEMENTATION PLAN Download via https://ncdc.gov.ng/themes/common/files/establishment/0ee30df42b787ee3bbced29b9930b27f.pdf #NCDCStrategy#IamHealthSecurity#Vision2Action

Today, we're taking the next step by launching the NCDC Strategy 2023 to 2027, tagged ‘vision into action’" Follow the discussion via https://twitter.com/NCDCgov/status/1726894890158887036?t=Jd4yndV7SWHGomEakivxxA&s=19 #NCDCStrategy#IamHealthSecurity#Vision2Action

Transforming our #Vision2Action, the #NCDCStrategy story continues 💪🏾 The #NCDCStrategy 2023-2027 is set to be launched❕ Join us for our health security partners meeting and strategy launch. When❓ 🗓️Tuesday, 21 November 2023 #SaveTheDate via 🔗bit.ly/NCDCStrategyLaunch #IAmHealthSecurity