"sys" and "os" Modules

This chapter provides introductions and tutorial examples about 'sys' and 'os' modules. Topics include using 'sys' and 'os' properties and methods; accessing Python system information; accessing operating system information; creating child processes; managing files and directories.

What Is "sys" Module

What Is "os" Module

Use "os" Module to Create Child Processes

Use "os" Module to Manage Files


Table of Contents

 About This Book

 Running Python Code Online

 Python on macOS Computers

 Python on Linux Computers

 Built-in Data Types

 Variables, Operations and Expressions

 Statements - Execution Units

 Function Statement and Function Call

 Iterators, Generators and List Comprehensions

 Classes and Instances

 Modules and Module Files

 Packages and Package Directories

"sys" and "os" Modules

 "pathlib" - Object-Oriented Filesystem Paths

 "pip" - Package Installer for Python

 SciPy.org - Python Libraries for Science

 pandas - Data Analysis and Manipulation

 Anaconda - Python Environment Manager

 Jupyter Notebook and JupyterLab


 Full Version in PDF/EPUB