About 516 results
Open links in new tab
  1. 4. More Control Flow Tools — Python 3.13.3 documentation

    2 days ago · Every Python developer should read it at some point; here are the most important points extracted for you: Use 4-space indentation, and no tabs. 4 spaces are a good compromise between small indentation (allows greater nesting depth) and large indentation (easier to read).

  2. 4. Execution model — Python 3.13.3 documentation

    3 days ago · A Python program is constructed from code blocks. A block is a piece of Python program text that is executed as a unit. The following are blocks: a module, a function body, and a class definition.

  3. 8. Compound statements — Python 3.13.3 documentation

    3 days ago · The if, while and for statements implement traditional control flow constructs. try specifies exception handlers and/or cleanup code for a group of statements, while the with statement allows the execution of initialization and finalization code around a block of code.

  4. 4. Lebih Banyak Alat Pengatur Aliran Control Flow - Python

    Lebih Banyak Alat Pengatur Aliran Control Flow¶ As well as the while statement just introduced, Python uses a few more that we will encounter in this chapter. 4.1. Pernyataan if ¶ Mungkin tipe pernyataan yang paling terkenal adalah pernyataan if. Sebagai contoh: >>>

  5. binascii --- 在二进制数据和 ASCII 之间进行转换 — Python 3.13.3

    binascii 模块包含多个方法用来在二进制数据和多种 ASCII 编码的二进制数据表示形式之间进行转换。 在通常情况下,你不会直接使用这些函数而是使用 base64 这样的包装器模块作为替代。 binascii 模块包含用 C 语言编写的供这些高层级模块使用的低层级函数以获得更快的运行速度。

  6. threading — Thread-based parallelism — Python 3.13.3 …

    2 days ago · threading.excepthook() can be overridden to control how uncaught exceptions raised by Thread.run() are handled. Storing exc_value using a custom hook can create a reference cycle. It should be cleared explicitly to break the reference …

Refresh