Professional Documents
Culture Documents
Python packages
Date and time
Regular Expressions
Python packages
Python packages
Python packages
Here, there is a directory named pkg that contains two
modules, mod1.py and mod2.py.
import <module_name>[, <module_name> ...]
from <module_name> import <name(s)>
from <module_name> import <name> as <alt_name>
sub() Function
The sub() function replaces the matches with the text