fileinput — Iterate over lines from multiple input streams — Python 3.9.25 documentation

docs.python.org

Tin mới

os.path — Common pathname manipulations

stat — Interpreting stat() results

Python documentation for the current stable release

Python documentation for the current stable release

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().

Python Module Index

3.9.25 Documentation

The Python Standard Library

File and Directory Access

io.TextIOBase.readline

With mode you can specify which file mode will be passed to open(). It must be one of 'r', 'rU', 'U' and 'rb'.

object.__getitem__

With mode you can specify which file mode will be passed to open(). It must be one of 'r', 'rU', 'U' and 'rb'.

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,