Please enable JavaScript.
Coggle requires JavaScript to display documents.
Modules and classes - Coggle Diagram
Modules and classes
Classes
Inheritance and Polymorphism
Inheritance
class SubClassName(SuperClassName)
is a
super()
Polymorphism
multiple inheritance
Methods can be overriden
Type Identification
isintance()/issubclass()
Quick OO reminder
Define a class
Class Variable
init
()
propreties
decorator
Modules
What's a module?
Definition
Purpose
Debugging
Reusability
Structure
Module vs Script
import
impor module
import module as x
from module import a,b,c
from module import *
Build-in basic modules
module for date and time
"datetime" module
"calendar" module
"time" module
"sys" module
functions
sys.path
sys.agrv
sys.version_info
sys.exit([arg)]
purpose =>
interaction with
python interpreter
mathematical modules
"math" module
"decimal" modules
"random" module
s
"dir" function
Return ?
function call
No parameter
Parameter