Answers for "do you need __init__.py in python 3"

1

python init

class Person:
	def __init__(self, name):
		self.name = name
Posted by: Guest on August-02-2021
1

__init__ python

class A(object):
    def __init__(self):
        self.x = 'Hello'

    def method_a(self, foo):
        print self.x + ' ' + foo
Posted by: Guest on May-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language