Initialize instance (not a constructor)
- init
class Point:
def __init__(self):
pass
p1 = Point()
print(p1) # <__main__.Point object at 0x7f57922ec1c0>
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
class Point:
def __init__(self):
pass
p1 = Point()
print(p1) # <__main__.Point object at 0x7f57922ec1c0>