@Marwa_OsmanLB · Post #3325 · 24.09.2024 г., 10:15
Israel expanded its bombing campaign on Lebanon to include the Beka’a Valley, adding to civilian casualties. #Lebano#Israel#Bekaa#South
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
Пребарај: #bekaa
@Marwa_OsmanLB · Post #3325 · 24.09.2024 г., 10:15
Israel expanded its bombing campaign on Lebanon to include the Beka’a Valley, adding to civilian casualties. #Lebano#Israel#Bekaa#South
@Marwa_OsmanLB · Post #4169 · 17.03.2025 г., 12:02
Lebanese Media reported that a child was killed and four others were injured due to shelling originating from the Qusayr countryside in Syria, targeting border towns in the eastern #Bekaa region of #Lebanon. On Sunday evening, rockets were launched from the Qusayr countryside inside Syrian territory toward the town of Al-Qasr on the Lebanese-Syrian border. Lebanese Media reported ongoing artillery shelling from positions held by Hay’at Tahrir al-Sham (HTS) in the Qusayr countryside, targeting the same town. Amid escalating artillery fire from the #Qusayr countryside, residents of Lebanese border towns were seen fleeing toward the city of #Hermel. Meanwhile, the Lebanese Army, through the Red Cross, handed over to Syrian authorities the bodies of three HTS fighters who had been found in Al-Qasr.