Python exposes many built-in functions through its PythonStandard library.
The standard library is a huge collection of various utilities, ranging from math utilities to debugging to creating graphical user interfaces.
You can find a complete list of standard library modules here:https://docs.python.org/3/library/index.html
Some important modules are:
math
Used for math toolsre
Used in regular expressionsjson
Use JSONdatetime
Work with datesqlite3
Use SQLiteos
For operating system utilitiesrandom
Used for random number generationstatistics
Used in statistical utilitiesrequests
Perform HTTP network requesthttp
Create HTTP serverurllib
Manage URL
Let us introduce howuseModules of the standard library. You already know how to use the created module and import it from other files in the program folder.
Well, this is the same module provided by the standard library:
import math
math.sqrt(4) # 2.0
or
from math import sqrt
sqrt(4) # 2.0
We will soon explore the most important modules individually to understand what we can do with them.
More python tutorials:
- Introduction to Python
- 在macOS上安装Python 3
- Run Python program
- Python 2 and Python 3
- Basics of using Python
- Python data types
- Python operators
- Python string
- Python boolean
- Python numbers
- Python, accepts input
- Python control statements
- Python list
- Python tuple
- Python set
- Python dictionary
- Python functions
- Python objects
- Python loop
- Python module
- Python class
- Python standard library
- Debug Python
- Python variable scope
- Python, accept parameters from the command line
- Python recursion
- Python nested functions
- Python Lambda function
- Python closure
- Python virtual environment
- Use Python to use GoPro as a remote webcam
- Python, how to create a list from a string
- Python decorator
- Python Docstrings
- Python introspection
- Python notes
- Python, how to list files and folders in a directory
- Python, how to check if a number is odd or even
- Python, how to get detailed information of a file
- Python, how to check if a file or directory exists
- Python exception
- Python, how to create a directory
- Python, how to create an empty file
- Python, `with` statement
- Python, create a network request
- Python, use `pip` to install third-party software packages
- Python, read file content