DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
self in python
class
Class
(
parentClass
)
:
def
__init__
(
self
,
arg
)
:
self
.
arg
=
arg
def
function
(
self
)
:
print
(
arg
)
PREVIOUS
NEXT
Tagged:
#python
ADD COMMENT
Topic
COMMENT
Name
5+2 =
Submit