返回顶部
首页 > 资讯 > 后端开发 > Python >官网PYthon语言参考手册The Py
  • 515
分享到

官网PYthon语言参考手册The Py

官网参考手册语言 2023-01-31 01:01:55 515人浏览 薄情痞子

Python 官方文档:入门教程 => 点击学习

摘要

This reference manual describes the syntax and “core semantics” of the language. It is terse, but attempts to be exact

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 thePython/C api Reference Manual describes the interfaces available to C/C++ programmers in detail.

  • 1. Introduction
    • 1.1. Alternate Implementations
    • 1.2. Notation
  • 2. Lexical analysis
    • 2.1. Line structure
    • 2.2. Other tokens
    • 2.3. Identifiers and keyWords
    • 2.4. Literals
    • 2.5. Operators
    • 2.6. Delimiters
  • 3. Data model
    • 3.1. Objects, values and types
    • 3.2. The standard type hierarchy
    • 3.3. New-style and classic classes
    • 3.4. Special method names
  • 4. Execution model
    • 4.1. Naming and binding
    • 4.2. Exceptions
  • 5. Expressions
    • 5.1. Arithmetic conversions
    • 5.2. Atoms
    • 5.3. Primaries
    • 5.4. The power operator
    • 5.5. Unary arithmetic and bitwise operations
    • 5.6. Binary arithmetic operations
    • 5.7. Shifting operations
    • 5.8. Binary bitwise operations
    • 5.9. Comparisons
    • 5.10. Boolean operations
    • 5.11. Conditional Expressions
    • 5.12. Lambdas
    • 5.13. Expression lists
    • 5.14. Evaluation order
    • 5.15. Operator precedence
  • 6. Simple statements
    • 6.1. Expression statements
    • 6.2. Assignment statements
    • 6.3. The assert statement
    • 6.4. The pass statement
    • 6.5. The del statement
    • 6.6. The print statement
    • 6.7. The return statement
    • 6.8. The yield statement
    • 6.9. The raise statement
    • 6.10. The break statement
    • 6.11. The continue statement
    • 6.12. The import statement
    • 6.13. The global statement
    • 6.14. The exec statement
  • 7. Compound statements
    • 7.1. The if statement
    • 7.2. The while statement
    • 7.3. The for statement
    • 7.4. The try statement
    • 7.5. The with statement
    • 7.6. Function definitions
    • 7.7. Class definitions
  • 8. Top-level components
    • 8.1. Complete Python programs
    • 8.2. File input
    • 8.3. Interactive input
    • 8.4. Expression input
  • 9. Full Grammar specification
from: https://docs.python.org/2/reference/index.html#reference-index

--结束END--

本文标题: 官网PYthon语言参考手册The Py

本文链接: https://lsjlt.com/news/184744.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作