platform — Access to underlying platform’s identifying data — Python 3.16.0a0 documentation

docs.python.org

Tin mới

logging.handlers — Logging handlers

errno — Standard errno system symbols

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Generic Operating System Services

collections.namedtuple

Fairly portable uname interface. Returns a namedtuple() containing six attributes: system, node, release, version, machine, and processor.

sys.getandroidapilevel()

api_level - API level of the running device, as an integer (e.g. 34 for Android 14). To get the API level which Python was built against, see sys.getandroidapilevel().

Command-line usage¶

platform can also be invoked directly using the -m switch of the interpreter: