约 400 个结果
在新选项卡中打开链接
  1. 6. Modules — Python 3.13.7 documentation

    1 天前 · Such a file is called a module; definitions from a module can be imported into other modules or into the main module (the collection of variables that you have access to in a script …

  2. 7. Input and Output — Python 3.13.7 documentation

    1 天前 · Input and Output ¶ There are several ways to present the output of a program; data can be printed in a human-readable form, or written to a file for future use.

  3. Built-in Functions — Python 3.14.0 documentation

    1 天前 · The function imports the module name, potentially using the given globals and locals to determine how to interpret the name in a package context. The fromlist gives the names of …

  4. getpass — Portable password input — Python 3.14.0 documentation

    2 天之前 · If none are set, the login name from the password database is returned on systems which support the pwd module, otherwise, an OSError is raised. In general, this function …

  5. fileinput — Iterate over lines from multiple input streams

    1 天前 · This module implements a helper class and functions to quickly write a loop over standard input or a list of files. If you just want to read or write one file see open ().

  6. sys — System-specific parameters and functions — Python 3.14.0 ...

    1 天前 · This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It is always available.

  7. Command-line interface libraries — Python 3.14.0 documentation

    1 天前 · The modules described in this chapter assist with implementing command line and terminal interfaces for applications. Here’s an overview: argparse — Parser for command-line …

  8. subprocess — Subprocess management — Python 3.14.0 …

    1 天前 · The subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace several …

  9. math — Mathematical functions — Python 3.13.7 documentation

    1 天前 · This module provides access to common mathematical functions and constants, including those defined by the C standard. These functions cannot be used with complex numbers; use …

  10. The Python Standard Library — Python 3.14.0 documentation

    1 天前 · The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python programmers, as …