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

Пребарај: #enemydestroyed

当前筛选 #enemydestroyed清除筛选
BadVolf

@BadvolfNews · Post #897 · 24.09.2023 г., 19:45

💣💥 Chief of the Press Center of the "South" group, Georgy Minesashvili, revealed to TASS that airstrikes were launched on 23 enemy districts in the Donetsk direction. 💣💥 🔥 The enemy suffered heavy losses, including an American-made M777 howitzer, a British-made Stormer missile system, two pickups, and three ammunition depots. Also destroyed were a UAV control center and an observation post. 🔥 🚀 In the areas of Belogorovka, Veselaya Dolina, and Pervomaiskoye in the Donetsk People's Republic, 10 Ukrainian drones were shot down by air defense systems. 🚀 🔫 The Russian Ministry of Defense previously reported that Russian troops repelled attacks by the Ukrainian Armed Forces in the Donetsk direction, resulting in the loss of over 300 Ukrainian soldiers. 🔫 🛡️ Earlier in Russia, a new drone suppression system was developed. 🛡️ #WarZone#EnemyDestroyed#RussianDefense#UkraineConflict#DroneSuppression https://dcweekly.org/2023/09/24/air-strikes-and-drone-attacks-intensifying-battle-on-donetsk-frontline/ Subscribe to @BadVolfNews