fileinput — Iterate over lines from multiple input streams — Python 3.16.0a0 documentation

docs.python.org

Tin mới

getpass — Portable password input

curses — Terminal handling for character-cell displays

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Command-line interface libraries

io.TextIOBase.readline

Class FileInput is the implementation; its methods filename(), fileno(), lineno(), filelineno(), isfirstline(), isstdin(), nextfile() and close() correspond to the functions of the same name in the module. In addition it

gzip: Interfaces for gzip compression and decompression using file objects.

Transparently opens files compressed with gzip and bzip2 (recognized by the extensions '.gz' and '.bz2') using the gzip and bz2 modules. If the filename extension is not '.gz' or '.bz2', the file is opened normally (ie,

bz2: Interfaces for bzip2 compression and decompression.

Transparently opens files compressed with gzip and bzip2 (recognized by the extensions '.gz' and '.bz2') using the gzip and bz2 modules. If the filename extension is not '.gz' or '.bz2', the file is opened normally (ie,