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

Резултати

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

Пребарај: #rabiesawareness

当前筛选 #rabiesawareness清除筛选
#HaSab

@Hasab_2016 · Post #176 · 23.08.2025 г., 17:22

A step closer to a rabies-free community! I'm proud to share that I've been recognized as a Bronze-Level Dog Health Champion by the Global Alliance for Rabies Control (GARC). This certification fuels my passion for protecting both people and animals in our community. The best part? The training that got me here is completely free and available for everyone on the GARC website! This knowledge empowers us all to make a difference. Did you know that vaccinating 70% of dogs can break the cycle of rabies and protect everyone? As a DVM student, I am actively involved in educational activities to promote this and end the harmful practice of dog culling. I believe education is power! If you're a school, community group, or just a concerned pet owner, I'm here to help us learn together. Let's work towards the goal of #ZeroBy30! #CommunityHealth#DogVaccination#RabiesAwareness#GARC#DogHealthChampion#VeterinaryStudent#PublicHealth#LearnTogether#FreeEducation