Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

como usar o Self no python

def __init__(self):
   self.mtd([1, 2, 2, 3, 3, 3, 4, 4, 4, 4])

def mtd(self, data):
   for value in data:
       print(value)
Source by pt.stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #como #usar #Self #python
ADD COMMENT
Topic
Name
1+2 =