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

Резултати

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

Пребарај: #cabriolet

当前筛选 #cabriolet清除筛选
Car News

@car_news · Post #1964 · 15.04.2026 г., 13:09

🚘 Porsche unveiled the 911 GT3 S/C lightweight-cabriolet 🆕 This is the first GT3 with an automatic retractable roof and currently the only two-seater 911 convertible. 🐎 Under the hood is a naturally aspirated 4.0L engine producing 510 hp. 💨 0–100 km/h takes just 3.9 seconds, with a top speed of 313 km/h. 6️⃣ And yes — it comes with a 6-speed manual transmission. 💶 Price – €269,000. Already available for order. #Porsche#cabriolet@Car_News

Car News

@car_news · Post #1030 · 22.02.2025 г., 16:50

📰Maserati GranCabrio was presented in its newbase version 🚘 The base cabriolet is equipped with a biturbo V6 engine with an output of 490 hp, 8-speed automatic transmission and all-wheel drive, acceleration to 100 km/h is in 3.9 seconds. 💶 In Italy, the base cabriolet costs at least 170 thousand euros. @CarsNews #Maserati#cabriolet