Referensi Bahasa Python¶
This reference manual describes the syntax and core semantics of the language. It is terse, but attempts to be exact and complete.
Elsewhere, the built-in object types and functions are described in Referensi bawaan Python. Standard library modules are described in The Python standard library.
For an informal introduction to the language, see Tutorial Python. For C or C++ programmers, two additional manuals exist: Memperluas dan Menggabungkan Interpreter Python describes the high-level picture of how to write a Python extension module, and the Panduan referensi API Python/C describes the interfaces available to C/C++ programmers in detail.
- 1. Pengantar
- 2. Lexical analysis
- 3. Data model
- 4. Execution model
- 5. The import system
- 6. Expressions
- 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. Perbandingan
- 6.11. Boolean operations
- 6.12. Ekspresi Pemberian Nilai
- 6.13. Conditional expressions
- 6.14. Lambdas
- 6.15. Expression lists
- 6.16. Evaluation order
- 6.17. Operator precedence
- 7. Simple statements
- 7.1. Expression statements
- 7.2. Assignment statements
- 7.3. The
assertstatement - 7.4. Pernyataan
pass - 7.5. Pernyataan
del - 7.6. The
returnstatement - 7.7. The
yieldstatement - 7.8. The
raisestatement - 7.9. The
breakstatement - 7.10. The
continuestatement - 7.11. The
importstatement - 7.12. The
globalstatement - 7.13. The
nonlocalstatement - 7.14. The
typestatement
- 8. Pernyataan gabungan
- 9. Komponen tingkat atas
- 10. Spesifikasi Lengkap Tata Bahasa