A module is a file containing Python definitions and statements intended for use in other Python programs.
There are many Python modules that come with Python as part of the standard library.
Modules are reusable libraries of code in Python. Python comes with many standard library modules.
We have know two modul the time module and the math module.
Creating modules:-
All we need to create a module is a text file with a .py extension on the filename:
# mymodule.py
def great(name):
return 'Hello ' + name + ', how are you?'
We can now use our module in both scripts and the Python shell. To do so, we must first import the module.
Auf dieser Seite können Sie das Online-Video Standard Modules in Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Vishu Natu 15 September 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 373 Mal angesehen und es wurde von 6 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!