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

Пребарај: #koa2

当前筛选 #koa2清除筛选
GitHub Trends

@githubtrending · Post #14937 · 09.07.2025 г., 14:30

#typescript#api#cms#cms_framework#content_management#content_management_system#customizable#dashboard#graphql#hacktoberfest#headless_cms#jamstack#javascript#koa#koa2#mysql#no_code#nodejs#rest#strapi#typescript Strapi is a free, open-source headless content management system that lets you manage content easily and flexibly, whether you host it yourself or use Strapi Cloud. It works with many databases and lets you build custom APIs, routes, and plugins to fit your needs. You can use any frontend technology you like, such as React, Vue, or Angular, and it comes with a modern, customizable admin panel. Strapi is fast, secure, and scalable, making it simple to deliver content across websites, apps, or devices. This means you get full control over your content and how it’s displayed, saving time and effort while keeping your project future-proof[1][2][3]. https://github.com/strapi/strapi