Skip to content
UPEEC

sys

Interpreter information: argv, path, exit, stdin/stdout, version and platform.

Easy
Comments 0
import sys
sys.argv            # command-line arguments
sys.version_info >= (3, 11)
sys.exit(1)         # exit with an error code

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.