Полный справочник по python

Browse the docs online or download a copy of your own.

Python’s documentation, tutorials, and guides are constantly evolving.

Get started here, or scroll down for documentation broken out by type and subject.

Beginner

Moderate

Advanced

General

Python 3.x Resources

Porting from Python 2 to Python 3

>>> Python Needs You

Open source software is made better when users can easily contribute code and documentation to fix bugs and add features. Python strongly encourages community involvement in improving the software. Learn more about how to make Python better for everyone.

>>> Python Enhancement Proposals (PEPs) : The future of Python is discussed here. RSS

  • About
    • Applications
    • Quotes
    • Getting Started
    • Help
    • Python Brochure
    • All releases
    • Source code
    • Windows
    • macOS
    • Other Platforms
    • License
    • Alternative Implementations
    • Docs
    • Audio/Visual Talks
    • Beginner’s Guide
    • Developer’s Guide
    • FAQ
    • Non-English Docs
    • PEP Index
    • Python Books
    • Python Essays
    • Diversity
    • Mailing Lists
    • IRC
    • Forums
    • PSF Annual Impact Report
    • Python Conferences
    • Special Interest Groups
    • Python Logo
    • Python Wiki
    • Code of Conduct
    • Community Awards
    • Get Involved
    • Shared Stories
    • Arts
    • Business
    • Education
    • Engineering
    • Government
    • Scientific
    • Software Development
    • Python News
    • PSF Newsletter
    • PSF News
    • PyCon US News
    • News from the Community
    • Python Events
    • User Group Events
    • Python Events Archive
    • User Group Events Archive
    • Submit an Event
    • Developer’s Guide
    • Issue Tracker
    • python-dev list
    • Core Mentorship
    • Report a Security Issue

    Источник

    The Python Language Reference¶

    This reference manual describes the syntax and “core semantics” of the language. It is terse, but attempts to be exact and complete. The semantics of non-essential built-in object types and of the built-in functions and modules are described in The Python Standard Library . For an informal introduction to the language, see The Python Tutorial . For C or C++ programmers, two additional manuals exist: Extending and Embedding the Python Interpreter describes the high-level picture of how to write a Python extension module, and the Python/C API Reference Manual describes the interfaces available to C/C++ programmers in detail.

    • 1. Introduction
      • 1.1. Alternate Implementations
      • 1.2. Notation
      • 2.1. Line structure
      • 2.2. Other tokens
      • 2.3. Identifiers and keywords
      • 2.4. Literals
      • 2.5. Operators
      • 2.6. Delimiters
      • 3.1. Objects, values and types
      • 3.2. The standard type hierarchy
      • 3.3. Special method names
      • 3.4. Coroutines
      • 4.1. Structure of a program
      • 4.2. Naming and binding
      • 4.3. Exceptions
      • 5.1. importlib
      • 5.2. Packages
      • 5.3. Searching
      • 5.4. Loading
      • 5.5. The Path Based Finder
      • 5.6. Replacing the standard import system
      • 5.7. Package Relative Imports
      • 5.8. Special considerations for __main__
      • 5.9. References
      • 6.1. Arithmetic conversions
      • 6.2. Atoms
      • 6.3. Primaries
      • 6.4. Await expression
      • 6.5. The power operator
      • 6.6. Unary arithmetic and bitwise operations
      • 6.7. Binary arithmetic operations
      • 6.8. Shifting operations
      • 6.9. Binary bitwise operations
      • 6.10. Comparisons
      • 6.11. Boolean operations
      • 6.12. Assignment expressions
      • 6.13. Conditional expressions
      • 6.14. Lambdas
      • 6.15. Expression lists
      • 6.16. Evaluation order
      • 6.17. Operator precedence
      • 7.1. Expression statements
      • 7.2. Assignment statements
      • 7.3. The assert statement
      • 7.4. The pass statement
      • 7.5. The del statement
      • 7.6. The return statement
      • 7.7. The yield statement
      • 7.8. The raise statement
      • 7.9. The break statement
      • 7.10. The continue statement
      • 7.11. The import statement
      • 7.12. The global statement
      • 7.13. The nonlocal statement
      • 8.1. The if statement
      • 8.2. The while statement
      • 8.3. The for statement
      • 8.4. The try statement
      • 8.5. The with statement
      • 8.6. The match statement
      • 8.7. Function definitions
      • 8.8. Class definitions
      • 8.9. Coroutines
      • 9.1. Complete Python programs
      • 9.2. File input
      • 9.3. Interactive input
      • 9.4. Expression input

      Источник

      Python 3.11.4 documentation

      Welcome! This is the official documentation for Python 3.11.4.

      Parts of the documentation:

      Library Reference
      keep this under your pillow

      Language Reference
      describes syntax and language elements

      Python Setup and Usage
      how to use Python on different platforms

      Python HOWTOs
      in-depth documents on specific topics

      Installing Python Modules
      installing from the Python Package Index & other sources

      Distributing Python Modules
      publishing modules for installation by others

      Python/C API
      reference for C/C++ programmers

      FAQs
      frequently asked questions (with answers!)

      Indices and tables:

      Global Module Index
      quick access to all modules

      General Index
      all functions, classes, terms

      Glossary
      the most important terms explained

      Search page
      search this documentation

      Complete Table of Contents
      lists all sections and subsections

      Meta information:

      Download

      Docs by version

      • Python 3.13 (in development)
      • Python 3.12 (pre-release)
      • Python 3.11 (stable)
      • Python 3.10 (security-fixes)
      • Python 3.9 (security-fixes)
      • Python 3.8 (security-fixes)
      • Python 3.7 (EOL)
      • Python 3.6 (EOL)
      • Python 3.5 (EOL)
      • Python 2.7 (EOL)
      • All versions

      Other resources

      © Copyright 2001-2023, Python Software Foundation.
      This page is licensed under the Python Software Foundation License Version 2.
      Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
      See History and License for more information.

      The Python Software Foundation is a non-profit corporation. Please donate.

      Last updated on Jul 24, 2023. Found a bug?
      Created using Sphinx 4.5.0.

      Источник

      Python, Справочник, Полное описание языка, Мартелли А., Рейвенскрофт А., Холден С., 2019

      Python, Справочник, Полное описание языка, Мартелли А., Рейвенскрофт А., Холден С., 2019.

      Язык программирования Python обладает рядом, казалось бы, противоречивых качеств: в нем сочетаются элегантность и прагматичность, простота и мощь. С одной стороны, это высокоуровневый язык, с другой — он позволяет оперировать байтами и битами. Его легко изучать новичкам и в то же время он эффективный инструмент в руках специалистов.
      Эта книга предназначена как для программистов, уже знакомых с языком Python, так и для тех, кто только приступает к его изучению, но имеет опыт работы с другими языками программирования. Она представляет собой справочное руководство по языку Python, наиболее часто используемым компонентам его стандартной библиотеки и ряду наиболее популярных и полезных модулей и пакетов сторонних производителей. Книга охватывает широкий круг прикладных вопросов, в том числе сетевое и веб-программирование, обработку XML-документов, работу с базами данных и высокоскоростные вычисления. Внимание читателей акцентируется на кросс-платформенных возможностях Python, включая рассмотрение основных способов расширения Python и внедрения кода на языке Python в приложения, созданные с использованием других языков программирования.

      Python, Справочник, Полное описание языка, Мартелли А., Рейвенскрофт А., Холден С., 2019

      Введение в Python.
      Универсальный язык программирования Python известен уже давно: его создатель, Гвидо ван Россум, приступил к разработке Python в 1990 году. Этот стабильный и зрелый язык обладает целым рядом привлекательных качеств: он сверхвысокоуровневый, динамичный, объектно-ориентированный и кросс-платформенный. Python выполняется на всех основных аппаратных платформах под управлением самых разных операционных систем, предоставляя полную свободу в отношении их выбора.

      Python обеспечивает высокую производительность на всех фазах жизненного цикла разработки программного обеспечения (ПО): фазах анализа, проектирования, прототипирования, написания, тестирования, отладки и доводки программного кода, а также подготовки документации, развертывания и, разумеется, сопровождения готового приложения. Год от года популярность Python неуклонно возрастает. В наши дни знание языка Python служит дополнительным плюсом к характеристике любого программиста, поскольку Python проник практически во все возможные ниши и может играть важную роль в качестве компонента любого программного решения.

      ОГЛАВЛЕНИЕ.
      Предисловие.
      Часть I. Начало работы с Python.
      Глава 1. Введение в Python.
      Глава 2. Интерпретатор Python.
      Часть II. Ядро и встроенные объекты Python.
      Глава 3. Язык программирования Python.
      Глава 4. Объектно-ориентированный Python.
      Глава 5. Исключения.
      Глава 6. Модули.
      Глава 7. Встроенные объекты и модули стандартной библиотеки.
      Глава 8. Строки и байты.
      Глава 9. Регулярные выражения.
      Часть III. Библиотека Python и модули расширения.
      Глава 10. Работа с файлами и текстом.
      Глава 11. Базы данных и постоянное хранение.
      Глава 12. Работа со значениями даты и времени.
      Глава 13. Управление процессом выполнения.
      Глава 14. Потоки и процессы.
      Глава 15. Математические вычисления.
      Глава 16. Тестирование, отладка и оптимизация кода.
      Часть IV. Сетевое и веб-программирование.
      Глава 17. Основы работы с сетями.
      Глава 18. Асинхронные архитектуры.
      Глава 19. Модули для работы с клиентскими сетевыми протоколами.
      Глава 20. Работа с протоколом HTTP.
      Глава 21. Электронная почта, MIME и другие сетевые кодировки.
      Глава 22. Структурированный текст: HTML.
      Глава 23. Структурированный текст: XML.
      Часть V. Расширение, распространение, миграция v2/v3.
      Глава 24. Модули расширения и внедрение классического Python в другие программы.
      Глава 25. Распространение расширений и программ.
      Глава 26. Переход с версии 2.x на версию 3.x и сосуществование различных версий.
      Предметный указатель.

      Бесплатно скачать электронную книгу в удобном формате, смотреть и читать:
      Скачать книгу Python, Справочник, Полное описание языка, Мартелли А., Рейвенскрофт А., Холден С., 2019 — fileskachat.com, быстрое и бесплатное скачивание.

      Скачать файл № 1 — pdf
      Скачать файл № 2 — djvu
      Ниже можно купить эту книгу по лучшей цене со скидкой с доставкой по всей России. Купить эту книгу

      Источник

      Читайте также:  Вывести все значения массива python
Оцените статью