The ‘
os
’ module
The os module is used for things that depend on the operating system (whether Windows,
Mac OS X, Linux etc.) and presents them in a standardised way. For example, os.path is
used to interact with the file system. We’ve skipped the description of lots of functionality
involving processes, devices etc., concentrating only on a few of the more commonly
used, general functions. This module should not be confused with the sys module, which
deals with Python interpreter information and not the operating system.
Do'stlaringiz bilan baham: |