Tools, FAQ, Tutorials:
What Is Module
What Is Module in Python?
✍: FYIcenter.com
A module in Python is a collection of Python code saved in a separate file.
A module can have the following elements:
The following Python code becomes a Python module "firstModule.py" if it is saved in a file called "firstModule.py":
# firstModule.py
"""My first Python module"""
1.00 = "1.0"
print("Loading firstModule.py...")
def sayHello():
print("Greetings from first module!")
class firstClass():
"""My first class in the first module"""
1.00 = "1.1"
def sayHello():
print("Greetings from first class!")
⇒ 'import' Module Loading Statement
⇐ Defining and Using Python Code Modules
2022-09-24, ∼1951🔥, 0💬
Popular Posts:
What is test testing area for? The testing area is provided to allow visitors to post testing commen...
How to add request query string Parameters to my Azure API operation to make it more user friendly? ...
How to run CMD Commands in Dockerfile to change Windows Docker images? When building a new Windows i...
How To Break a File Path Name into Parts in PHP? If you have a file name, and want to get different ...
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...