Γενικές Υπηρεσίες Λειτουργικού Συστήματος¶
Τα modules που περιγράφονται σε αυτό το κεφάλαιο παρέχουν διεπαφές για λειτουργίες του λειτουργικού συστήματος που είναι διαθέσιμες σε (σχεδόν) όλα τα λειτουργικά συστήματα, όπως τα αρχεία και το ρολόι. Οι διεπαφές είναι γενικά βασισμένες στα πρότυπα των Unix ή C, αλλά είναι διαθέσιμες και στα περισσότερα άλλα συστήματα. Ακολουθεί μια επισκόπηση:
os
— Miscellaneous operating system interfacesio
— Core tools for working with streamstime
— Time access and conversionsargparse
— Parser for command-line options, arguments and sub-commandsgetopt
— C-style parser for command line optionslogging
— Logging facility for Pythonlogging.config
— Logging configurationlogging.handlers
— Logging handlersgetpass
— Portable password inputcurses
— Terminal handling for character-cell displayscurses.textpad
— Text input widget for curses programscurses.ascii
— Utilities for ASCII characterscurses.panel
— A panel stack extension for cursesplatform
— Access to underlying platform’s identifying dataerrno
— Standard errno system symbolsctypes
— A foreign function library for Python- ctypes tutorial
- Loading dynamic link libraries
- Accessing functions from loaded dlls
- Calling functions
- Fundamental data types
- Calling functions, continued
- Calling functions with your own custom data types
- Specifying the required argument types (function prototypes)
- Return types
- Passing pointers (or: passing parameters by reference)
- Structures and unions
- Structure/union alignment and byte order
- Bit fields in structures and unions
- Arrays
- Pointers
- Type conversions
- Incomplete Types
- Callback functions
- Accessing values exported from dlls
- Surprises
- Variable-sized data types
- ctypes reference
- ctypes tutorial