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

Пребарај: #bismut

当前筛选 #bismut清除筛选
MessageInABottle

@mib_messageinabottle · Post #6825 · 20.05.2024 г., 11:39

#ISRAEL IS SENDING ACTIVE DUTY SERVICEMEN TO BRUTALLY #ATTACK PEACEFUL #PROTESTORS ON #US SOIL • Sending troops to the #USA to attack US #Citizens = act of war • Doing so without declaring hostilities first = war crime • Doing so perfidiously out of uniform and lacking insignia = war crime • Targeting civilians = war crime The United States #Congress is obligated to attack #TelAviv and to bring these people to justice. Israeli soldiers attacked US citizens at #UCLA on the night of April 30th and the morning of May 1st. They attacked unarmed protestors with: •baseball bats, •metal pipes, •plywood, •2x4s, •bear spray, •skunk spray, •frozen water bottles, and of course •with their their fists causing SERIOUS BODILY #INJURY and almost killing one 4th Year UCLA student. The name of one such #IDF soldier was Eliran #Bismut. He was in the US not on a VISA but on a 90 day " [...] http://boards.4chan.org/pol/thread/468522229