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

Пребарај: #libraries

当前筛选 #libraries清除筛选
djangoproject

@djangoproject · Post #328 · 03.05.2017 г., 19:27

http://www.csestack.org/python-list-installed-modules-versions-pip/ The main strength of the Python is, the wide range of external #libraries are available. As we keep coding in Python, we install many packages. It is easy getting a Python list installed #modules on the system. There are a couple of ways you can do that.

GitHub Trends

@githubtrending · Post #14966 · 16.07.2025 г., 13:30

#other#awesome#awesome_list#c#c_plus_plus#cpp#cpp_library#cppcon#libraries#list#lists#programming_tutorial#resources You can access a vast, well-organized collection of C++ libraries, frameworks, and tools that cover almost every programming need—from standard libraries, GUI, networking, and machine learning to game engines, cryptography, and more. This curated list includes popular and high-quality options like Boost, Qt, OpenCV, and many specialized libraries for tasks such as asynchronous programming, audio processing, and serialization. Using these resources can save you time, improve code quality, and help you build efficient, robust applications by leveraging tested, peer-reviewed components instead of writing everything from scratch. It’s a one-stop reference to boost your C++ development productivity and capabilities. https://github.com/fffaraz/awesome-cpp